Cli command coding format, Rexx external routine coding format, Tso/e command coding format – HP XP Command View Advanced Edition Software User Manual
Page 141: 141 tso/e command coding format
CLI command coding format
This section describes the CLI command coding format for each command type.
REXX external routine coding format
REXX external routines provided by Smart Manager for Mainframe must be called as subroutines.
Therefore, write a REXX script as shown below, and then execute the script.
REXX script coding format
CALL
1
command-name
1
"parameter"
Script coding method
•
Use the
RESULT
variable to acquire the return code of a CLI command.
•
When a CLI command is executed, values are set or updated in the REXX variable structure. To
check the command execution results, code a REXX script to output the REXX variables in the REXX
variable structure.
•
When a CLI command is executed, a message is generated by the command. That message is
stored in the REXX variable message structure. The message structure is initialized each time a CLI
command with the same message structure name specified is called.
•
Before executing any one of the CLI commands listed below, you must execute the
KTLOAD
com-
mand. The
KTLOAD
command loads the information necessary for executing the CLI command
from the configuration file to the REXX variable structure.
•
KTACTTPG
•
KTDCTTPG
•
KTQRYRLC
•
KTQRYTPG
•
KTQSTATS
•
Multiple REXX variable structures are expanded for a single CLI command. If only some of the
REXX variable structures are deleted, subsequently issued commands might not operate normally.
To delete REXX variable structures, you need to delete all the related REXX variable structures.
Related topics
TSO/E command coding format
To execute a CLI command categorized as a TSO/E command from a REXX script, code the script
as follows.
REXX script coding format
ADDRESS
1
TSO
1
"command-name
1
parameter"
User Guide
141