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.
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;