Jcl without first step execution

Jcl without first step execution

Postby inbasekarmani » Tue May 06, 2014 11:12 am

Hi All,

One of the interviewer asked me,I have one catalog procedure which contains step1,2...upto step15.Now i want to run the steps which is inside the procedure, from step2 to step15 without using restart parameter,only i want to use COND parameter.I replied by using IEBEDIT,it can be easily handled.But interviewer wants only with COND parameter.

Thanks and Regards,
Posts: 2
Joined: Wed Jan 09, 2008 2:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Jcl without first step execution

Postby Robert Sample » Tue May 06, 2014 4:21 pm

From the JCL Reference manual: COND Parameter on the First Statement in a Job The system evaluates a COND parameter on the first EXEC statement in a job as false. However, you can use an IF statement before the first EXEC statement in a job to bypass the step. See Chapter 17, "IF/THEN/ELSE/ENDIF Statement Construct" in topic 17.0 for more information.
Robert Sample
Global moderator
Posts: 3706
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 277 times

Re: Jcl without first step execution

Postby NicC » Tue May 06, 2014 5:36 pm

However you do it it is probably a bad idea as that first step should be producing something that is required in a later step. If it isn't then it should be in a job of its own.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Return to Interview Questions


  • Related topics
    Last post