Previous Topic: #XI, #XO, and #XEND StatementsNext Topic: Additional Override Statements


Scheduled Override Examples

Example: Omit statements with specific schedule ID

This example omits statements whenever a job is scheduled by Schedule ID 6.

#JO,ID=6
  .
  . (JCL statements to be omitted)
  .
#JEND

Example: Include statements with date and time

This example includes statements until date 13265 at 8.00 a.m.

#JI,ED=13265,ET=0800
  .
  . (JCL statements to be included)
  .
#JEND

Example: Omit statements with dates

This example omits statements from 13200 through 13206.

#JO,BD=13200,ED=13206
  .
  . (JCL statements to be omitted)
  .
#JEND

Example: Include statements with dates

This example includes statements from 13200 through 13206.

#JI,BD=13200,ED=13206
  .
  . (JCL statements to be included)
  .
#JEND

Example: Include statements with several schedule IDs

This example includes statements whenever a job is scheduled by schedule IDs 1, 4, 5, 6, and 9.

#JI,ID=(1,4-6,9)
  .
  . (JCL statements to be included)
  .
#JEND

Example: Include statements between two times

This example includes statements only between 10:00 a.m. and 4:00 p.m.

#JI,OA=1000,OB=1600
  .
  . (JCL statements to be included)
  .
#JEND

Example: Omit statements between two times for specific schedule IDs

This example omits statements only between 4:00 p.m. and 10:00 p.m. for schedule IDs 9, 10, and 11.

#JO,ID=9-11,OA=1600,OB=2200
  .
  . (JCL statements to be omitted)
  .
#JEND

Note: The JCLxx text editor command or the LJCK command can simulate the JCL inclusions or omissions. This simulation can help test the conditional JCL statements for proper generation. SASSJCLU can remove expired override statements from PDS libraries.

More information:

SASSJCLU - JCL Utility