Re-creating the current plan from the new-current-plan and EQQJTARC until a specific date
About this task
If manual actions were performed on some application occurrences by error, but the new current plan still exists and is valid, you can have HCL Workload Automation for Z to take over the new current plan again, until the date and time of the latest valid record. This prevents re-creating the CP including all the archived JT events, even those that could be invalid or inconsistent after the detected errors.
Perform the following procedure:
- Stop HCL Workload Automation for Z.
- Make a backup copy of the new current plan (NCP VSAM data set) and job-tracking archive log (EQQJTARC).
- Run EQQAUDIT to generate a printout of formatted audit reports, which provides you with a picture of the current plan.
- Browse EQQJTARC and take note of the time stamp of the latest valid record. Because the
same action could be logged on more than 1 record in EQQJTARC (with different date and time),
make sure that you consider the very last record in the block. The time stamp starts at decimal location 13 and it is read vertically. It is provided in GMT time zone and the Julian date format CCYYDDDHHMMSSTH, where:
- CC
- Century: 00 indicates the 20th century, 01 indicates the 21th century.
- YY
- Year.
- DDD
- Day of the year in the Julian calendar.
- HH
- Hour.
- MM
- Minutes.
- SS
- Seconds.
- TH
- Tenth of a second.
Suppose that the time stamp of the latest valid record in EQQJTARC is as shown in the following example, you will set JTOPTS APPLYUNTIL to 012327211592926: - Deactivate job submission.
- In the JTOPTS statement, specify both the
following parameters:
- CURRPLAN(NEW)
- APPLYUNTIL(CCYYDDDHHMMSSTH), where CCYYDDDHHMMSSTH is the time stamp of the
latest valid record retrieved in EQQJTARC. This parameter specifies that only the JT events
until that date and time are applied.
Note: Ensure that the value that you indicate for APPLYUNTIL is a date later than the first event and earlier than the last event logged in EQQJTARC.
- Start HCL Workload Automation for Z. It will:
- Use the new current plan data sets (EQQNCPDS and EQQNCXDS) as input.
- Copy EQQNCPDS to either EQQCP1DS or EQQCP2DS.
- Copy EQQNCXDS to EQQCXDS, then load the CX data space from EQQCXDS.
- Apply the events from EQQJTARC until the date set in JTOPTS APPLYUNTIL.
- To align the new current plan and JT files, run a daily planning REPLAN.
- Delete CURRPLAN(NEW) and APPLYUNTIL(CCYYDDDHHMMSSTH) from the JTOPTS statement.