EXEC command

The EXEC command is used to run the commands in a specific rhilev.RKANPARU member.

F cccccccc,EXEC [mmmmmmmm]
Where cccccccc is the started task name you specified for the OMEGAMON for CICS (3270) and mmmmmmmm is the member name.

The EXEC member contains commands such as START, STOP, and even another EXEC command. When an EXEC command is processed inside another EXEC member, it is as if all of the commands of the other EXEC member were placed into the calling EXEC member in the same position as the calling command.

For example, consider the following command:

F cccccccc,EXEC MEMBERA
Where cccccccc is the started task name you specified for the OMEGAMON for CICS (3270) during your product configuration.
If MEMBERA contains the following commands:
START KOCCICS,CICS=CICSPROD,UNIT=560,LROWS=255
EXEC MEMBERB
And, if MEMBERB contains the following commands:
LOG * OM/CICS VTAM common interface START - APPL=KOCVTMnn *
START OBVTAM,OM=KOCCICS,CICS=CICSPROD,APPL=KOCVTMnn,UMAX=05
Then the effect of entering F cccccccc,EXEC MEMBERA is the same as if you entered the following commands:
F cccccccc,START KOCCICS,CICS=CICSPROD,UNIT=560,LROWS=255
F cccccccc,LOG * OM/CICS VTAM common interface START - APPL=KOCVTMnn *
F cccccccc,START OBVTAM,OM=KOCCICS,CICS=CICSPROD,APPL=KOCVTMnn,MAX=05
Where cccccccc is the started task name you specified for the OMEGAMON for CICS (3270) during your product configuration. It is also the same effect if you use a single member that contains all of the commands:
START KOCCICS,CICS=CICSPROD,UNIT=560,LROWS=255
LOG * OM/CICS VTAM common interface START - APPL=KOCVTMnn *
START OBVTAM,OM=KOCCICS,CICS=CICSPROD,APPL=KOCVTMnn,UMAX=05

The maximum number of EXEC commands that can be processed at one time is 10. This helps prevent EXEC loops, where A EXECs B and B EXECs A.