Tags

, ,

JCL – RUN ONLY ONE MIDDLE STEP (RESTART)

There is a JCL with 10 steps with Step names from STEP01 to STEP10. For some reason, only the 5th step (Step name: STEP05) needs to be executed. How can this be done.

A) Provide the parameter RESTART=STEP02,COND=(0,GT) in the JOB CARD

B) This cannot be done

C) Provide the parameter RESTART=STEP05 in the JOB CARD

D) Provide the parameter RESTART=STEP05,COND=(0,LE) in the JOB CARD

A. D

Option D would RESTART the job from STEP05 as required. The COND parameter provided in the JOB CARD would be applicable for all the steps in the JOB. So whatever may be the COND code from STEP05, it would always be satisfied by the COND parameter provided (COND=(0,LE)) for the consecutive steps, so none of the steps from STEP06 through STEP10 will execute.

Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
IDCAMS – Define VSAM ESDS
IDCAMS – Define VSAM RRDS
IDCAMS – Define VSAM KSDS
IDCAMS – Define Alternate Index (AIX)
IDCAMS – Define PATH for Alternate Index
IDCAMS – Define GDG
IDCAMS – Alter GDG, VSAM or PS File
IDCAMS – Delete GDG, VSAM or PS File
IDCAMS – Print VSAM File
IDCAMS
Recovery of Deleted Tape data set (Using Volume Serial)
JCL – SYSIN CONCATENATION
JCL – RUN ONLY ONE MIDDLE STEP (RESTART)
GDG – Delete Just Versions Not BASE
JCL – COPY DCB OF INPUT FILE TO OUTPUT FILE
HOW TO SUBMIT A JOB AUTOMATICALLY AFTER A JOB FINISHES
DELETE ALL GDG VERSIONS WITHOUT DELETING BASE
LISTCAT – BATCH JOB
IEBCOPY Examples
IEBGENER – INTERNAL READER TO SUBMIT
Delete Multiple datasets with same HLQ
JCL INTERVIEW QUESTIONS
JCL TIPS


Advertisements