Using the Batch Facility
Xchange's batch facility lets you insert steps in your batch jobs that will exchange the date and time for selected steps or the entire job. By including Xchange steps directly in your jobs, you can easily manage and maintain a large number and variety of date/time exchanges.
An Xchange I000 message is placed in the JES2 job log the first time during program execution that Xchange simulates a date or time for a job step. The same message is sent to your terminal, but might not be seen unless you update your TSO profile. To enable viewing of I000 messages, type TSO PROFILE WTPMSG on the TSO COMMAND line and press Enter.
If only one Xchange batch step is included in your job:
- The Xchange step must come before the job steps it specifies.
- A fully qualified stepname can be entered for the STEP parameter.
If you include multiple Xchange batch steps in your job:
- Each Xchange step must come before the job steps it specifies.
- Fully qualified stepnames should not be used.
- Only the last Xchange step executed will have an entry or entries on the Simulated Date Time Settings screen.
You can use the batch facility by simply inserting the following Xchange batch steps as required in the application job that you want to affect.
Xchange Batch Steps
//STEPNAME EXEC PGM=XGCBATCH,PARM=’request’
//STEPLIB DD DSN=CPWR.MLXGnnn.SLXGLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//*
Replace CPWR with the high-level qualifier chosen for your site. You must also provide information for the PARM='request' variable according to the syntax shown in either Batch Facility Request Parameter Syntax for Fixed Date and Time for fixed date and time or Batch Facility Request Parameter Syntax for Date/Time Offset for date/time offset.
Batch Facility Request Parameter Syntax for Fixed Date and Time

Batch Facility Request Parameter Syntax for Date/Time Offset

This section contains the following topics: