How to: Replace Viewtable by FSEDIT and FSVIEW

In May 1997 there was a discussion about the Viewtable in SAS 6.12 which replaced FSEDIT and FSVIEW when you try to look at a dataset or edit it form the DIR window. Many participants complained that they wanted back the old FSEDIT and FSVIEW.

Now here is the solution:
If you want to call FSVIEW/FSEDIT from the DIR window simply replace SASHELP.FSP.VTMAIN.FRAME by your own program.

  1. First: Rename VTMAIN.FRAME to XTMAIN.FRAME

  2. Then create a new Frame Entry VTMAIN.FRAME with the following SCL:
     ENTRY arglist 8  ;
      
     init:
       _STATUS_ = "H";
       name = getnitemc(arglist,"DATA",1,1," ");
       mode = getnitemc(arglist,"MODE",1,1," ");
       if mode = "EDIT" then
          call fsedit (name);
       else if mode = "BROWSE" then
          call fsview (name);
       else 
          call display("SASHELP.FSP.XTMAIN.FRAME",arglist);
     RETURN; 
    
  3. The viewtable command will continue to work, but from the DIR window you will call fsview and fsedit.


WS Unternehmensberatung und Controlling-Systeme GmbH
Friedrich-Weinbrenner-Straße 20
D-69126 Heidelberg

Tel.: +49 6221 401 409
Fax: +49 6221 401 422
EMail: wisch@attglobal.net