EXECUTE.LIST |
|
|
The EXECUTE.LIST command executes one or more commands for each entry in a select list.
Format
EXECUTE.LIST command1; command2; command3...
where
The EXECUTE.LIST command executes the specified commands for each entry in the default select list (list 0). The value extracted from the list for each iteration of the command processing can be substituted into the command by use of a pair of empty round brackets.
Where a command displays output, use of PAUSE as one of the commands in the list may be useful to allow the user to indicate that the output has been seen before continuing with the next command.
Example
SELECT VOC WITH TYPE = 'F' EXECUTE.LIST ANALYSE.FILE (); PAUSE
The above sequence executes the ANALYSE.FILE command for each file defined by an F-type VOC entry. The () construct is replaced by the filename for each file processed. |