Hi everyone,
Is it possible to clear log, clear output, close all viewtable and run the script in one key (dmkey)?
I currently define my F3 as
clear log; clear output; submit;
which is not able to close all viewtables.
Thanks for your help.
The VT window has it's own KEYS entry so I don't think you are going to be able to submit commands to the VT window from the main Keys that are not related to the initial opening of the VT window.
You could just hard code a number of them.
clear log; clear output; next viewtable; end; next viewtable; end; pgm ; submit;
You might have to experiment with a command macro to see if you could get it to figure how many need to close. Also might need to change the PGM command if you are using PC-SAS and the Enhanced (sic) Editor.
@Tom wrote:
You could just hard code a number of them.
clear log; clear output; next viewtable; end; next viewtable; end; pgm ; submit;
You might have to experiment with a command macro to see if you could get it to figure how many need to close. Also might need to change the PGM command if you are using PC-SAS and the Enhanced (sic) Editor.
I needed to use
log; clear; output; clear; next viewtable; end;
to clear the log and output. And yes WPGM instead of PGM for enhanced editor.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.