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:
  1. Stop HCL Workload Automation for Z.
  2. Make a backup copy of the new current plan (NCP VSAM data set) and job-tracking archive log (EQQJTARC).
  3. Run EQQAUDIT to generate a printout of formatted audit reports, which provides you with a picture of the current plan.
  4. 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:
    Figure 1. Extract of the job-tracking archive log (EQQJTARC)
    BROWSE          TWSTST.TWSR.JTARC
    Command ===> ________________________________________
    .$..OPC01360.....β.........VALENTI......à...$........
    0500DDCFFFFD0222152200000000000000000000C0005FFF10000
    024067301366137F19960000000000000000000000002FFF00000
  5. Deactivate job submission.
  6. 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.
  7. Start HCL Workload Automation for Z. It will:
    1. Use the new current plan data sets (EQQNCPDS and EQQNCXDS) as input.
    2. Copy EQQNCPDS to either EQQCP1DS or EQQCP2DS.
    3. Copy EQQNCXDS to EQQCXDS, then load the CX data space from EQQCXDS.
    4. Apply the events from EQQJTARC until the date set in JTOPTS APPLYUNTIL.
    Because the JT events later than the date set in JTOPTS APPLYUNTIL are not applied in the CP, you are required to take the appropriate actions if you need them. For a picture of the previous CP, see the EQQAUDIT report.
  8. To align the new current plan and JT files, run a daily planning REPLAN.
  9. Delete CURRPLAN(NEW) and APPLYUNTIL(CCYYDDDHHMMSSTH) from the JTOPTS statement.