views:

206

answers:

1

to open a table in SAS we can use the DM "VT {tablename}" command.

What is the equivalent command to CLOSE the viewtable window???

+4  A: 

Well... this command will close the viewtable window (replace {libref.dataset} with your data), but submitting it repeatedly will continue closing other viewtable windows that might also be open so you might want to tweek it a bit if that's an issue.

dm 'next VIEWTABLE:libref.dataset; end;';
cmjohns
Could you close all open viewtable's with a similar command?
Ville Koskinen
Just what I needed - thanks. Ville - the code below will close all windows if submitted repeatedly:
Bazil
dm 'next VIEWTABLE:; end;';
Bazil
You could also enclose it in a macro like this (credit to http://sasrunner.blogspot.com/ for this tip )%macro closevts / cmd;%local i;%do i=1 %to 20;next "viewtable:";end;%end;%mend;
cmjohns