
244 IBM Tivoli Workload Scheduler for z/OS Best Practices
//*
OLDDATE='&TVAR'
//*
//*********************************************************
In Example 10-13, the occurrence date for this job was 09/14/05. The SETVAR
set the value for TVAR to take the occurrence day and subtract five calendar
days. Thus, the result is 09/09/05.
Example 10-13 Temporary variable resolved
//TWSTEST4 JOB (290400),'TEST VARS',CLASS=A,MSGLEVEL=(1,1),
// MSGCLASS=H,TYPRUN=SCAN
//*>OPC SCAN
//*>OPC SETFORM OCDATE=(MM/DD/YY)
//*>OPC SETVAR TVAR=(OCDATE-5CD)
//*********************************************************
//* TESTING TWS JCL TEMPORARY VARIABL ...