Sometimes in JCL, there is a need to have a more flexible logic to see condition codes. Examples include: day of week, day of month, hour, datacenter, etc. The attached Rexx program gives a format to build IF logic based on anything. We have also used it set condition codes if a task/job is running or if a task/job is not running.
REX Set JCL CC based on REXX IF (eg. day, hour, etc)
Author: Jim Poole
Mainframe database administrator at a large telecommunications company. Over 40 years experience.