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

jCl Query


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhir1507

New User


Joined: 10 Nov 2009
Posts: 4
Location: India

PostPosted: Wed Nov 18, 2009 12:40 pm
Reply with quote

Please tell me anybody,If I have JCL which have 10 steps.If I have to execute the job till 7th step.Then what parameter I have to give.I don't want to use COND parameter.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Wed Nov 18, 2009 12:46 pm
Reply with quote

HOMEWORK ?
And why would you NOT want to use the quickest and easiest solution.

Is this instream or PROC
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Nov 18, 2009 1:22 pm
Reply with quote

/*EOF after the last step
Back to top
View user's profile Send private message
sudhir1507

New User


Joined: 10 Nov 2009
Posts: 4
Location: India

PostPosted: Wed Nov 18, 2009 5:21 pm
Reply with quote

this is proc and this is interview question.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Nov 18, 2009 10:04 pm
Reply with quote

Hello,

Quote:
I don't want to use COND parameter.
If it were me, i'd tell the interviewer that you can't always get what you want. . .

Did they want the 7th step to execute or did they want the job to terminate before the 7th step was run? One (rather unacceptable) way might be to plant an override DD that is syntactically correct, but will cause a "dataset not found" error when that step is reached icon_evil.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1248
Location: Richfield, MN, USA

PostPosted: Thu Nov 19, 2009 11:32 am
Reply with quote

sudhir1507 wrote:
I don't want to use COND parameter.
Does that mean that you don't want to use the IF/THEN/ELSE/ENDIF construct either?
Back to top
View user's profile Send private message
deepthimadhu

New User


Joined: 03 Mar 2009
Posts: 12
Location: Trivandrum

PostPosted: Wed Dec 02, 2009 6:04 pm
Reply with quote

You can put a null statement after the 7th step, so that the steps from 8 to 10 wont get executed
Back to top
View user's profile Send private message
karisurya

New User


Joined: 02 Aug 2007
Posts: 64
Location: Bangalore

PostPosted: Fri Dec 04, 2009 5:54 pm
Reply with quote

As deepthi said Null statement after 7th step should work even though its not a clean way of doing it.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Fri Dec 04, 2009 6:22 pm
Reply with quote

deepthimadhu wrote:
You can put a null statement after the 7th step, so that the steps from 8 to 10 wont get executed

karisurya wrote:
As deepthi said Null statement after 7th step should work even though its not a clean way of doing it.

As stated by the OP earlier, this is a PROC and not instream JCL. So perhaps one of you guys can supply the answer on how to insert the NULL into the PROC.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Dec 04, 2009 8:12 pm
Reply with quote

Jeez I hate this forum! Once again, without knowing the exact context and role for which this question was asked, there's no real way to know what the expected proper answer is. icon_evil.gif
Back to top
View user's profile Send private message
lalitsharma_77

New User


Joined: 29 Nov 2007
Posts: 10
Location: Pune

PostPosted: Fri Dec 04, 2009 11:27 pm
Reply with quote

Hi Sudhir,

I guess you can use IEBEDIT command. This way you can execute first 7 steps out of 10 of a CATALOG PROC.

Thanks
Lalit
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Fri Dec 04, 2009 11:54 pm
Reply with quote

lalitsharma_77 wrote:
I guess you can use IEBEDIT command. This way you can execute first 7 steps out of 10 of a CATALOG PROC.

Did you TEST before posting.
Back to top
View user's profile Send private message
lalitsharma_77

New User


Joined: 29 Nov 2007
Posts: 10
Location: Pune

PostPosted: Sat Dec 05, 2009 4:01 am
Reply with quote

Hi Expat,

I tested this in my last shop and it worked. There I executed just 1 step. I did not test the same recently.
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 Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:

Back to Top