Chapter Contents |
Previous |
Next |
EXECCMD |
Category: | Command |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
CALL EXECCMD(cval); |
Type: Character
Details |
The commands are collected until another window is displayed or until SCL has finished executing and control is returned to the procedure. The commands are then submitted to the command-line processor before the next window is displayed or before the current window is redisplayed.
The commands collected with EXECCMD will not be executed if the next window displayed is a host window (such as CATLIST, DIRLIST, LIBLIST, FILELIST or MESSAGEBOX). The commands will be held in a buffer until a non-host selector window is displayed or the current window is redisplayed.
With CONTROL ALWAYS in FSEDIT applications or CONTROL ALLCMDS in other SAS/AF applications, statements in MAIN execute before a command that is issued with CALL EXECCMD. This behavior could introduce an infinite loop. Either execute the EXECCMD routine conditionally or specify the command using EXECCMDI with the NOEXEC parameter.
Example |
If the table is empty, add a new row:
call execcmd('end');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.