Ironstream provides the following commands for use in REXX programs. These are located in the Ironstream LOAD library and can be used when constructing automation scripts which will be called and run in the Ironstream address space (outside of a TSO/E environment). A sample program which uses these commands can be found in the SAMP dataset member JOBSUB.
EVORXALO - Allocate/Concatenate DD Names
Name |
Description |
---|---|
Description |
This function allocates and concatenates the dataset name(s) listed to the DD name provided. If the 'ddname' DD is currently allocated, then datasets will be concatenated to the existing allocation. If the named dataset is already part of the DD's concatenated list, no action will be taken. |
Syntax |
EVORXALO('ddname','dsname'[,'dsname'...]) where:
|
Return Value |
A variable can be assigned to the command to hold one of the following return texts:
|
REXX Example |
x = EVORXALO('MYLIB','TEST.JCL') x = EVORXALO('DD1','TEST.LOADLIB1','TEST.LOADLIB2') |
EVORXCON - Issue Console Command
Name |
Description |
|
---|---|---|
Description |
The EVORXCON command is used to establish an extended console session using MVS console services. This session allows you to enter MVS system commands (or subsystem commands) from the REXX program. |
|
Syntax |
EVORXCON('cmd','va where:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return Value |
A variable can be assigned to the command to hold one of the return text: OK - The command completed |
|
REXX Example |
Issue the "D A,L" command to display the names of all active address spaces on the mainframe. The response lines are printed by reading the RMSG compound variable. |
/*REXX*/
x = EVORXCON('D A,L','RMSG')
if x = 'OK' then do
do i = 1 to RMSG.0 say RMSG.i
end end exit
Issue the "D R,U" command to display the devices that require operator intervention. The response lines are printed by reading the RMSG compound variable. Use the console name "REXXCON", and do not display the command/response on the hardcopy log.
/*REXX*/
x = EVORXCON('D R,U','RMSG',,'REXXCON')
if x = 'OK' then do
do i = 1 to RMSG.0 say RMSG.i
end end exit
EVORXFRE - Free Allocated DDs
Name |
Description |
---|---|
Description |
Dynamically frees a dataset or a DD name and its associated datasets. |
Syntax |
EVORXFRE('key=name') where:
|
Return Value |
A variable can be assigned to the command to hold one of the following return texts:
|
REXX Example |
x = EVORXFRE('DDN=MYLIB') x = EVORXFRE('DSN=USER.JCL.CNTL') |
EVORXGET - Read a PDS Member
Name |
Description |
---|---|
Description |
This function will read a member of a PDS and return the records in the 'variable_name' specified as a compound variable (e.g. PDSRECD.1). The 'ddname' must be pre-allocated prior to invocation of the function. The '0' stem of the ‘variable_name' will contain the number of records read. The 'count' field is optional and will default to a maximum of 9,999 records. |
Syntax |
EVORXGET('member','ddname','returnmsg'[,linecount]) where:
|
Return Value |
A variable can be assigned to the command to hold one of the following return texts:
|
REXX Example |
This example opens a dataset member and reads JCL records. The records are written to an allocated internal reader to allow the JCL to be submitted as a job. |
|
EVORXINT - Allocate an Internal Reader (INTRDR)
Name |
Description |
---|---|
Description |
This function will allocate an INTRDR to the DD name specified. |
Syntax |
EVORXINT('ddname') where:
|
Return Value |
A variable can be assigned to the command to hold one of the following return texts:
|
REXX Example |
See the example for EVORXGET below to demonstrate the usage of EVORXINT. |
EVORXWAT - Wait/Sleep
Name |
Description |
---|---|
Description |
This function will suspend the processing in the REXX program for the specified number of seconds. If no parameter or a non-numeric parameter is specified, the default is five seconds. The maximum wait time is 999 seconds; any input larger than 999 is truncated to 999. While processing a Wait, all other Ironstream REXX automation processing is suspended, which should be taken into consideration when choosing a wait time. |
Syntax |
EVORXWAT(seconds) where:
|
Return Value |
A variable can be assigned to the command to hold one of these possible return texts: OK The wait has returned successfully |
REXX Example |
x = EVORXWAT(30) x = EVORXWAT() /* Wait for five seconds */ |
EVORXWTO - Issue a Write to Operator (WTO)
Name |
Description |
Description |
This function will issue a WTO with the default route code to the z/OS operator console. |
Syntax |
EVORXWTO('message'[,'{ROLL|NOROLL}']) where:
|
Return Value |
A variable can be assigned to the command to hold one of these possible return texts: |
|
|
REXX Example |
x = EVORXWTO('This WTO message will roll off the console') x = EVORXWTO('This message will not roll off the console','NOROLL') |