SAS Component Language Dictionary |
Executes one or more commands when control returns to the application
-
cval
-
specifies one or more commands to execute.
To specify multiple commands, place a semicolon between each command.
Type: Character
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.
Open the LIBNAME window and scroll down 5 items:
call execcmd('lib; down 5');
EXECCMDI
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.