<< Click to Display Table of Contents >> LNCMD_EXEC |
![]() ![]() ![]() |
Executes the selected line command for all data rows of the current result set. The statement returns data which are put on the top of the stack and become the current result set.
Two variants of this parameter are supported:
•lncmd_exec="LineCommand"
Executes specified line command for each row of the current result set.
•lncmd_exec="DataSetName;LineCommand"
It executes the specified line command for each row of DataSetName result set.
lncmd_exec="Automic - Objects in Plan"
lncmd_exec="Automic - JobPlan Definition;Automic - Objects in Plan"
In the first case only a name of the line command is entered. It works only when this line command is available in the current result set.
In the second case also the result set name (document name) is specified. Therefore it works even when this set is not on the top of the stack of data.
The following picture shows where you can find the correct names - the result set name and the line command name.
You must code the names exactly like you see them in the program. The menu and sub menu part of the line command name must be separated by ' - '.
You can use all available line commands. Even Browse line command is supported:
lncmd_exec="JCL - JOB Statements;Browse - Job"