SAS Component Language Dictionary |
Returns the text of the last command that was issued from the
application window
-
cmdtext
-
contains the text of the last command that
was issued from the application window.
Type: Character
If the command contains multiple words, only the first
word is returned.
LASTCMD is usually used in conjunction with CONTROL
ENTER, ALWAYS, or ALLCMDS.
Retrieve the last command that was issued in the window
and display a message, based on that command name:
INIT:
control always;
return;
MAIN:
cmd=lastcmd();
if cmd='GO' then
_msg_='Last command was '||cmd;
return;
WORD
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.