View previous topic :: View next topic
|
Author |
Message |
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi,
In an interview I was asked following question:
There is a job that contains 200 steps. It is required to execute only the 100th Step. How can this be done?
I have the idea about how to restart the job from STEP100 by using RESTART=STEP100. But how can we by pass the remaining steps (i.e. STEP101 to STEP200)???
Its a bad method to used DSN=DUMMY and over ride the remaining steps. Is there any short method? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Ho hummm, this has been asked so many times before.
Restart at the required step and code COND=(0,LE) on the jobcard. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
But are we to code this COND=(0,LE) for all the steps? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
swapnadeep.ganguly,
Quote: |
Restart at the required step and code COND=(0,LE) on the jobcard. |
I guess you missed this out .
Thanks,
Arun |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
I can't wait for the next reply
Gerry |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi,
I think there is some issue with my computer for which the same reply is being posted two times.
Moderator can you please remove one of the replies.
This is creating a bit of confusion. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Also I'm assuming Mr Ganguly didn't do well with his interview.
Gerry |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Gerry,
That's not the issue... This was one of the questions on which I faltered... For that reason to have my knowledge enhanched, I posted the same question in the forum.... |
|
Back to top |
|
|
Manuneedhi K
Active User
Joined: 07 May 2008 Posts: 115 Location: Chennai
|
|
|
|
I think you are missing the point here.
You jobcard must include this to run just the step100
RESTART=STEP100,COND=(0,LE) |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Thanks Manu. |
|
Back to top |
|
|
Manuneedhi K
Active User
Joined: 07 May 2008 Posts: 115 Location: Chennai
|
|
|
|
Oops.. Please ignore my post . I was referring to the double post and only now saw you clarifying that it wasn't done deliberately. |
|
Back to top |
|
|
vishal_arora
New User
Joined: 20 May 2005 Posts: 16
|
|
|
|
One more easy way :
1. On the jobcard put RESTART=STEP100 and after STEP100 put a // so next steps will not get executed.
2. On STEP100 put a label as .A on the Num being displayed.
Then do SUB .A . This will ensure only step100 will execute. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi Vishal,
We are not to make any changes in the PROC. What ever changes that we are doing, we can update the Job card that we are using.... |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Just for clarification, by coding COND=(0,LE) on the JOBCARD this will apply that particular condition checking for every step within the job, except for the first step or the step from where a restart was executed. |
|
Back to top |
|
|
gvel19
New User
Joined: 20 Jul 2008 Posts: 19 Location: Schenactady, US
|
|
|
|
Hi Swapnadeep,
Write a new jcl using PGM=IEBEDIT and mention the input file (which has got 200 steps) and under the SYSIN mention the following
INCLUDE COND=(STEP100)
Then run the new job. Now your job will invoke only STEP100 and only that step will get executed.
Thanks,
Velmurugan G |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I have some questions regarding IEBEDIT
How do you extract the step from a PROC ?
Also IEBEDIT does not handle IF/THEN/ELSE/ENDIF very well when selecting a STEP or STEPS.
It leaves the ENDIF statement hanging without the IF statement.
Gerry |
|
Back to top |
|
|
gvel19
New User
Joined: 20 Jul 2008 Posts: 19 Location: Schenactady, US
|
|
|
|
I have a JCL which 200 steps. How do I execute 100 th step
alone.
//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP100)/* |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
gvel19
I believe that your job will not extract the required from the procedure.
Please post you sucessful output. |
|
Back to top |
|
|
|