View previous topic :: View next topic
|
Author |
Message |
sudhir1507
New User
Joined: 10 Nov 2009 Posts: 4 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
HOMEWORK ?
And why would you NOT want to use the quickest and easiest solution.
Is this instream or PROC |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
/*EOF after the last step |
|
Back to top |
|
|
sudhir1507
New User
Joined: 10 Nov 2009 Posts: 4 Location: India
|
|
|
|
this is proc and this is interview question. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
deepthimadhu
New User
Joined: 03 Mar 2009 Posts: 12 Location: Trivandrum
|
|
|
|
You can put a null statement after the 7th step, so that the steps from 8 to 10 wont get executed |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
As deepthi said Null statement after 7th step should work even though its not a clean way of doing it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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. |
|
Back to top |
|
|
lalitsharma_77
New User
Joined: 29 Nov 2007 Posts: 10 Location: Pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
lalitsharma_77
New User
Joined: 29 Nov 2007 Posts: 10 Location: Pune
|
|
|
|
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 |
|
|
|