Previous Topic

Next Topic

Book Contents

Book Index

Example

Execute a specified REXX program to run under z/OS UNIX in Wait mode, and "shout" the completion code.

Figure 164b DO SHELL Parameter Example

RL: BAT*       LIB IOAA.PROD.CTO.OPR.RULES                      TABLE: DSNS

COMMAND ===>                                                    SCROLL===> CRSR

+-----------------------------------------------------------------------------+

ON DSNEVENT = BAT*     JTYPE   SMFID      SYSTEM                           

   DSN      PROD.NEW.OUTPUT.FILE                         DISP CATLG        

   PROCSTEP            PGMSTEP            STEPRC               And/Or/Not  

OWNER IOADMIN    GROUP                       MODE PROD    RUNTSEC 

THRESHOLD                                                                   

DESCRIPTION Order a Control-M MFT job to transfer this data set to a partner

DESCRIPTION when created using the Control-M AAPI CLI

===========================================================================

DO SHELL    = /usr/local/scripts/order_ctm_mft.sh %%$DSN

   WAITMODE   Y                                      TIMEOUT 9999    STOP Y

   SHARELOC   Y                                      IMMEDIATE Y

DO SHOUT    = TO OPER              URGENCY R SYSTEM          CTO282I       

   MESSAGE CTM ORDER OF MFT JOB ENDED WITH RC=%%SHELLRC

DO                                                                          

========================================================================== 

Parent Topic

DO SHELL: Automated Console Action Parameter