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
 

 

jCl Query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: jCl Query
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: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 18, 2009 12:46 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Nov 18, 2009 1:22 pm    Post subject:
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    Post subject:
Reply with quote

this is proc and this is interview question.
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 Nov 18, 2009 10:04 pm    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Thu Nov 19, 2009 11:32 am    Post subject: Re: jCl Query
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Dec 04, 2009 6:22 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Dec 04, 2009 8:12 pm    Post subject: Reply to: jCl Query
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Dec 04, 2009 11:54 pm    Post subject:
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts SQL Query optimization. arunsoods DB2 12 Sun Sep 04, 2016 6:27 am
No new posts Query on BLSR Nileshkul JCL & VSAM 2 Sat Aug 13, 2016 5:18 am


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