Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Executing specific steps in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
h.dinesh

New User


Joined: 06 Dec 2006
Posts: 46
Location: Chennai

PostPosted: Tue Dec 09, 2008 6:33 pm    Post subject: Executing specific steps in JCL
Reply with quote

Hi All,

Let us assume there are 10 steps in a JCL. We need to run steps 5 & 6 only without changing the JCL steps. Is there any way to do this?

I know a way to do this by using IEBEDIT but is it possible to achieve this by changing the jobcard?

Is there anyother way other than using condition codes for the steps? (it may be generic or specific to the case I mentioned).
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Dec 09, 2008 6:53 pm    Post subject:
Reply with quote

Without changing the PROC, you must change the calling JCL, cond all the steps you dont want to execute:

Code:
//JS01 EXEC THEPROC,COND.STEP1=(0,LT),COND.STEP2=(0,LT),COND.STEP3=(0,LT),COND.STEP4=(0,LT) ..
// COND.STEP10=(0,LT)
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2284
Location: @my desk

PostPosted: Tue Dec 09, 2008 10:07 pm    Post subject:
Reply with quote

Anuj,

Should n't that be (0,LE)?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 10, 2008 10:17 am    Post subject:
Reply with quote

Arun,

What if some step ends up with return code zero ?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 10, 2008 10:39 am    Post subject:
Reply with quote

Hi Anuj,

Quote:
What if some step ends up with return code zero ?
In your example, the steps will execute, not be skipped.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2284
Location: @my desk

PostPosted: Wed Dec 10, 2008 12:17 pm    Post subject:
Reply with quote

Quote:
What if some step ends up with return code zero ?
Anuj,

Adding to what Dick said,

0 is NOT Less Than 0, it 'll execute those steps and not bypass as explained here.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 10, 2008 12:22 pm    Post subject: Reply to: Executing specific steps in JCL
Reply with quote

My bad..I learn a lesson I should not log in to some resposible place when I had a fight with my "GF"... icon_redface.gif
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2284
Location: @my desk

PostPosted: Wed Dec 10, 2008 12:30 pm    Post subject: Re: Reply to: Executing specific steps in JCL
Reply with quote

Anuj D. wrote:
My bad..I learn a lesson I should not log in to some resposible place when I had a fight with my "GF"... icon_redface.gif
Anuj,

Now that you've learnt a lesson because of your GF. Say Thanks to her. icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 10, 2008 12:39 pm    Post subject:
Reply with quote

Yup sure..I'll.. keeping the distance till where Her hand can swing.. icon_biggrin.gif

And now lets get back to the origianl question please.
Back to top
View user's profile Send private message
h.dinesh

New User


Joined: 06 Dec 2006
Posts: 46
Location: Chennai

PostPosted: Wed Dec 10, 2008 2:14 pm    Post subject:
Reply with quote

Hi All,

Thanks for your inputs.

Assume if it is not a PROC but a JCL executing few programs in various steps then is there anyother solution?

It is just for learning and understanding things not a requirement...
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 10, 2008 2:41 pm    Post subject:
Reply with quote

Hello,

If it is not a proc, simply submit only the steps you want to run.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 10, 2008 3:19 pm    Post subject: Re: Reply to: Executing specific steps in JCL
Reply with quote

Anuj D. wrote:
My bad..I learn a lesson I should not log in to some resposible place when I had a fight with my "GF"... icon_redface.gif

More important lesson, do not fight with GF. Let's face it, they are ALWAYS right, or so I'm told icon_wink.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Dec 10, 2008 3:30 pm    Post subject:
Reply with quote

hmm..yup I think they are always.. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Route a product's job to specific lpar vasanthz All Other Mainframe Topics 9 Thu Mar 02, 2017 2:22 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts how to split records based on specifi... Venkata Ramayya DFSORT/ICETOOL 6 Wed Sep 28, 2016 3:20 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us