Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu Sep 08, 2005 5:32 am Post subject:
gans79,
Use COND=(00,LE) to stop any job/proc step from executing. But this will not work if the step is the first step since there is no RC to compare before the first step.
To suppress the first step from execution, you need to use COND=ONLY. For other steps use COND=(00,LE).
1. Code COND=ONLY for first step and COND=(00,LE) for all other steps except Step 05.
hi thanks for the response,
can i code restart = step5, cond = (0,LE) in the job card, instead of coding it in each step ??
if yes, how can we execute only steps (5,6,7,8 ) in using Restart & COND
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu Sep 08, 2005 7:36 am Post subject:
gans79,
looking at your first post, I thought you were not interested in RESTART.
Anyway...COND parameter - if provided in JOB CARD, will work for all job steps. This will not suit your case since it will stop all steps (except the first one).
If you have a INSTREAM JCL, then you can provide RESTART=STEP05 and you must code COND=(00,LE) in all steps after STEP08.
Note: You must be careful using RESTART and COND together. If by any change you give RESTART=STEP05 and have a COND=(00,LE) at STEP05, the step will still continue to execute as this will become the first executable step and there is no RC to check.
If you use JOB-PROC, then u can specify individual COND parms in the EXEC statement
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu Sep 08, 2005 9:47 am Post subject:
As I mentioned in my earlier post you cannot provide COND parameter in JOB Card for your case, because the COND in JOB CARD is common to all steps in the job. So none of your job steps will execute. So, there is no other way than providing COND parms in each and every job step you have. (Ofcourse there are other ways like IF/ELSE but not with COND).
If you use RESTART=STEP05, you can avoid giving COND in the first 4 job steps.
The following code will RESTART the job from STEP05 and will execute steps 5, 6, 7 and 8 (CASE 2). For Case 1, you need to provide COND=(00,LE) in all steps after STEP05 (Steps 6, 7, 8, 9, .....).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum