Chapter Contents |
Previous |
Next |
STDMSG |
Category: | Message |
Syntax | |
Example | |
See Also |
Syntax |
cval=STDMSG(); |
Type: Character
Example |
Use WORD to read a command from the command line in a PROGRAM entry and check the command for validity. If the command is not valid, the standard message is displayed. Valid commands in this case are PRINTIT and FILEIT. Any other commands produce the standard error message for invalid commands.
INIT: control always; return; MAIN: if _status_ in ('C' 'E') then return; command=word(1); call nextcmd(); select(upcase(command)); when('PRINTIT') _msg_='PRINTIT is specified'; when('FILEIT') _msg_='FILEIT is specified'; otherwise do; call execcmdi(command); stdmsg=stdmsg(); if stdmsg ne _blank_ then _msg_=stdmsg; return; end; end; return; TERM: return;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.