IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Executing specific steps in JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Tue Dec 09, 2008 6:53 pm
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: 2481
Location: @my desk

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

Anuj,

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

Superior Member


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

PostPosted: Wed Dec 10, 2008 10:17 am
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

Moderator Emeritus


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

PostPosted: Wed Dec 10, 2008 10:39 am
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: 2481
Location: @my desk

PostPosted: Wed Dec 10, 2008 12:17 pm
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

Superior Member


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

PostPosted: Wed Dec 10, 2008 12:22 pm
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: 2481
Location: @my desk

PostPosted: Wed Dec 10, 2008 12:30 pm
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

Superior Member


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

PostPosted: Wed Dec 10, 2008 12:39 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Dec 10, 2008 2:41 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 10, 2008 3:19 pm
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

Superior Member


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

PostPosted: Wed Dec 10, 2008 3:30 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts executing XCTL command in COBOL witho... CICS 10
This topic is locked: you cannot edit posts or make replies. Construct new record using specific f... DFSORT/ICETOOL 6
No new posts Receiving RC 5 when executing REXX pr... CLIST & REXX 3
No new posts Select a DB2 value in a specific deci... DB2 4
Search our Forums:

Back to Top