EXEC
The EXEC command processes a member in either the rhilev.RKANPAR or the rhilev.TKANPAR library that contains a predefined set of commands.
You enter this command by using MODIFY or as a command in an EXEC member to process another predefined set of commands.
Format
EXEC member_name
Examples
The following examples assume that the internal modify ID is M0IMSA.
START SESSION,UNIT=53E,...
EXEC member_b
START DEXAN
LOG *** OM/IMS VTAM interface START - APPLID=CTDOI ***
START cccccccc,APPLID=cccccccc,UMAX=05
where cccccccc is
the logon applid for OMEGAMON® for IMS to VTAM® that you specified by using
PARMGEN.F MOIMSA,EXEC member_a
at
the console, the effect is the same as if you entered the following
commands at the console:F M0IMSA,START SESSION,UNIT=53E,...
F M0IMSA,LOG *** OM/IMS VTAM interface START - APPLID=cccccccc
F M0IMSA,START cccccccc,APPLID=cccccccc,UMAX=05
F M0IMSA,START DEXAN
Limitations
You cannot nest EXEC commands more than 10 deep at any one command invocation. This prevents EXEC loops, where A EXECs B and B EXECs A.
EXEC members procedure
You can think of these members as a JCL procedure or as a TSO CLIST.
The EXEC member can contain any interface command, including another EXEC command.
When an EXEC member runs another EXEC command, the called EXEC command runs inline as if its statements replace the EXEC statement. The called EXEC command is treated like an INCLUDE statement in other programming languages.