Jcl without first step execution

inbasekarmani
Posts: 2
Joined: Wed Jan 09, 2008 2:41 pm
Skillset: jcl,cobol,cics,db2,vsam
Referer: friend

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,
Inbasekar

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Jcl without first step execution

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

From the JCL Reference manual:
16.5.6.3 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.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

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.
Regards
Nic


  • Similar Topics
    Replies
    Views
    Last post