This example illustrates the use of Control-M’s conditional logic in conjunction with Control-M "INCLUDE" and "GO TO" logic.
//PDPA0001 JOB (......),BILL,CLASS=A  | 
//  | 
The MONTHLY member in the CTM.LIB.COMJCL library contains:
//STEPMON   EXEC PGM=MONTHLY   | 
On the first day of the month both the DAILY and MONTHLY programs run. The submitted JCL:
//PDPA0001 JOB (......),BILL,CLASS=A  | 
//  | 
On any other day of the month, only the DAILY program runs. The submitted JCL:
//PDPA0001 JOB (......),BILL,CLASS=A  | 
//*  | 
//* %%IF 2 NE 1  | 
//* %% GOTO RUN_DAILY  | 
//* %%ELSE  | 
//* %%ENDIF  | 
//*  | 
//* %%LABEL RUN_DAILY  | 
//STEPDAI EXEC PGM=DAILY  | 
...  | 
//  | 
Parent Topic |