View previous topic :: View next topic
|
Author |
Message |
raman.k
New User
Joined: 26 Feb 2007 Posts: 24 Location: chennai
|
|
|
|
Hi
I have 4 steps JCL.
I want run third step only not step.
Now what we do
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You can use the search facility to look to see if this topic has been posted before, and YES it has.
Have you looked at any JCL manuals to see how this can be achieved ? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
Topic is already discussed
Code: |
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=data set that contain JCL,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP3
/* |
|
|
Back to top |
|
|
raman.k
New User
Joined: 26 Feb 2007 Posts: 24 Location: chennai
|
|
|
|
expat wrote: |
You can use the search facility to look to see if this topic has been posted before, and YES it has.
Have you looked at any JCL manuals to see how this can be achieved ? |
please menition the location. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
There are many ways to acheive this. Two way I had posted below -
With COND parameter only -
Code: |
//STEP1 EXEC PGM=IEFBR14,COND=ONLY
//...........
//STEP2 EXEC PGM=IEFBR14,COND=ONLY
//...........
//STEP3 EXEC PGM=IEFBR14
//...........
//STEP4 EXEC PGM=IEFBR14,COND=ONLY
//...........
|
With RESTART and COND parameter-
Code: |
//JOBBB JOB RESTART=STEP3
//*
//STEP1 EXEC PGM=IEFBR14
//...........
//STEP2 EXEC PGM=IEFBR14
//...........
//STEP3 EXEC PGM=IEFBR14
//...........
//STEP4 EXEC PGM=IEFBR14,COND=ONLY
//...........
|
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Its not
Quote: |
Two way I had posted below - |
but
Quote: |
Two ways I had posted below - |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
At the top of this page, and every other page, there are a selection of options, SEARCH & Manuals being just two of them. |
|
Back to top |
|
|
vickyltit Currently Banned New User
Joined: 22 Jan 2007 Posts: 2 Location: India
|
|
|
|
Hi
If restart is there then wat happend when u submitt that job it will execute step3 & step4 both best way for tht is u can use restart=step3 & in step4 u have to use COND=only then the job will go first to step3 & after that checks the condition of step4 . |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If step4 specifies cond=only and step3 abends, step4 will execute - probably not what is desired. . . |
|
Back to top |
|
|
Ranjanapai
New User
Joined: 21 Mar 2007 Posts: 3 Location: India
|
|
|
|
u can specify in the begining of the proc
cond.stepname=(0,le) which will not execute that step..
correct me if i am wrong.... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Yup, that is an easy way to accomplish what is wanted here |
|
Back to top |
|
|
|