Posts

Showing posts from September, 2025

Restart the proc

  there are 4 step in proc in step 3 file is corrupted .so i want to use new dataset from jcl for 4 step and want to dummy out step 3 and how can you achieve this and from which step you will restart the job To handle this scenario, you need to: Dummy out step 3  (since it uses corrupted file) Provide new dataset for step 4  from JCL Restart from step 3  (but skip it) and continue with step 4 Solution: Method 1: Using COND Parameter and Dataset Override In your Calling JCL: jcl //JOBNAME JOB ...,RESTART=STEP3 //JCL EXEC PROC=MYPROC //PROC.STEP3.COND=(0,GT) ← Dummy out step 3 //PROC.STEP4.DDNAME DSN=NEW.DATASET.NAME, ← New dataset for step 4 // DISP=SHR Method 2: Using Symbolic Parameters in PROC If PROC has symbolic parameters: jcl //JOBNAME JOB ...,RESTART=STEP3 //JCL EXEC PROC=MYPROC, // STEP3FLG='(0,GT)', ← Skip step 3 // NEWDSN='NEW.DATASET.NAME' ← New dataset for step 4 Restart Strategy: You should r...

Overrides in Calling JCL

  jcl //MYJOB JOB ... // EXEC PROC=MYPROC, // STEP3FLG='(0,GT)', ← Skips step 3 // NEWDSN='PROD.NEW.DATASET' ← New dataset for step 4 Key Points: STEP3FLG='(0,GT)'  - Always evaluates to true, causing step 3 to be bypassed NEWDSN='your.dataset.name'  - Provides the new uncorrupted dataset for step 4 The original corrupted file in step 3 is never accessed since the step is skipped Step 4 uses the new dataset you provided from the JCL