Modifying a job that has failed

If the job or started task has failed, you might be able to correct the error by changing the job. You can do this from the panel by entering the J row command beside that operation in the HANDLING OPERATIONS ENDED IN ERROR panel. The scheduler uses the ISPF/PDF editor to display the job for you to edit.

The scheduler keeps a separate copy of the job for each run. The job you edit using the J row command is always the job that was used during the failing run of the job (unless you have edited it since). When you end the edit with the END command, HCL Workload Automation for Z saves the modified job in the JCL repository and re-displays the ended-in-error list.

If the job contained resolved variables and you want to use the same variables again with new values, perhaps from another JCL variable table, delete the job in the ISPF editor and enter the END command. This forces HCL Workload Automation for Z to use a new copy of the job from EQQJBLIB.

JCL variable values are stored in the JCL record and will be used again if referenced in the current copy of the job. This is useful in situations in which you want to set promptable variables in the READY LIST panel, and then refer to them during the submit phase, probably in a COMP statement. For more information about job tailoring, see Job tailoring.

Note: Editing and saving the job does not restart the operation.