View previous topic :: View next topic
|
Author |
Message |
tamminenisidhartha Currently Banned New User
Joined: 31 Oct 2012 Posts: 43 Location: INDIA
|
|
|
|
Hi all.
I am trying to execute a job which has 100 steps.
What if I want to execute only first 50 steps in the job and not execute the last 50 steps.
Is there any parameter for that ?
Any help would be appreciated.
Thank you,
Sidhartha T |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
NO...
You will have to modify the JCL itself, the modifications extent will depend on how the JCL was originally written
for a once only run the fastest would be edit the JCL and delete the unwanted steps
also learn to pay attention to what You post
in the title You ask how to execute the last 50 steps ...
in the body of the question You ask how to execute the first 50 steps
sloppy posting will make people ignore Your questions |
|
Back to top |
|
|
tamminenisidhartha Currently Banned New User
Joined: 31 Oct 2012 Posts: 43 Location: INDIA
|
|
|
|
Sorry Enrico Sorichetti,
It was a mistake.
I want to execute the first 50 steps only.
Is there any parameter that needs to be given in the job card ?
Title corrected |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
This has been posted many times in the Forum, please search the Forum.
On the other hand, apart from what Enrico has suggested - have you tried IEBEDIT?
Another solution might be... and because it's first 50-steps - put label ".A" at first line-number and ".B" at the end of step50 then at command line
I think, you're just curious to know this -- or do you really have some practical situation up front? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Put a /*EOF after step 50. |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
There are a number of options which may or may not be suitable for your needs. None are as easy as you would like (a STOP statement perhaps) and each have their own drawbacks, you will have to decide which is best for your situation.
1) If you can update the proc, add an EOF marker as Peter has suggested. This can be simply // with nothing else after it.
2) If not, copy the proc to a different library that you can update and add a JCLLIB statement to the jobcard
3) Copy the proc to the jobcard, amend it and add a PEND statement
4) Add an over-ride on the jobcard to STEP51 that introduces an error, eg; a dataset that does not exist.
5) Code a COND.stepname=(0,LE) after the EXEC PROC statement. Might be tedious for 50 steps though. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Actually, this 'issue' has been debated to death on this Forum and I'd still like to re-state in the hope to know it from OP:
Quote: |
I think, you're just curious to know this -- or do you really have some practical situation up front? |
along with an addiotnal query - if it's an interview question? |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Another variation:
1.use the ISPF editor to Exclude the steps that you do not want to execute.
2. SUB NX This command will submit the non-excluded lines.
I find this to be a bit easier than the "SUB .A .B" technique.
Or, go into View, delete the steps that you don't want to execute, then SUB the lines that are left. With View, as opposed to Edit, there is no danger of accidentally saving your temporary changes. Been There, Done That. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
tamminenisidhartha wrote: |
Sorry Enrico Sorichetti,
It was a mistake.
I want to execute the first 50 steps only.
Is there any parameter that needs to be given in the job card ?
|
This has got to be the funniest response I've seen in a while. Blew right past the real answer, then rephrased and asked the same question. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Good one Ed, ditto! |
|
Back to top |
|
|
Gary McDowell
Active User
Joined: 15 Oct 2012 Posts: 139 Location: USA
|
|
|
|
Very easy...
After the 50th step, add // which will end the job.
For example...
//STEP1
//STEP2
...
//STEP50
//
//STEP51 {remaining steps will not execure with "//" above}
...
//STEP100 |
|
Back to top |
|
|
|