View previous topic :: View next topic
|
Author |
Message |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
hi all,
please let me know how can we handle the below requirement.
//XXXXXXXX JOB ( ) ,..,..., RESTART = ....
STEP1
..
STEP2
..
STEP3
..
.
.
.
STEP7
..
STEP8
..
..
STEP20
//
requirement : Need to run only step2 and step7. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Use IEBEDIT |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Code: |
//STEP0001 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=HLQ.JCL.PDS(MEMBER)
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
EDIT TYPE=INCLUDE,STEPNAME=(STEP2,STEP7)
/*
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Or search the forum as this HOMEWORK question appears quite frequently. |
|
Back to top |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Sambhaji. this is a very good code provided by you.
I wanted to know if this can be achieved using RESTART and COND parameter in the existing JCL.
EXPAT : Sure i will search for this logic in homework threads. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Mukesh Pandey wrote: |
I wanted to know if this can be achieved using RESTART and COND parameter in the existing JCL. |
Yes it can, hence my suggestion to search the forum |
|
Back to top |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Sure expat.. i will search the forum.. |
|
Back to top |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
expat, i could not find this particular requirement in forum. could you please spend your valuable time in providing a solution for this.....
this is to be done using restart and cond code logic...
Thank you, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
OK, so going back to the JCL reference manual ..................
It will show you how to perform a step restart for either a PROC or instream JCL.
OK, so now the part about the steps that you do not wish to run. For each step, or procstep, you will need to code the correct condition code checks for each of those steps. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
Quote: |
this is to be done using restart and cond code logic... |
WHY ?
answer... because that' s the requirement
comment ... **** the requirements |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Though no production support team will accept this..
I assume its purely homework
Code: |
//XXXXXXXX JOB ( ) ,..,..., RESTART =STEP2
STEP1
..
STEP2
..
//SKIP1 IF (STEP2.RC < 0) THEN
STEP3
..
STEP4
.
STEP5
.
.
//ENDSKIP1 ENDIF
STEP7
..
//SKIP2 IF (STEP7.RC < 0) THEN
STEP8
..
..
STEP9
//ENDSKIP2 ENDIF
|
|
|
Back to top |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Thanks Sabhaji. |
|
Back to top |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
Apart from restart = step name( cond & if) and iebedit is it possible to execute a particular step only, for example executing step 6 in the below jcl,
STEP1
..
STEP2
..
STEP3
..
.
.
.
STEP7
..
STEP8
..
..
STEP20
// |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Unless you change the JCL in some way, every step is executed (subject to condition codes and abends) in sequence. |
|
Back to top |
|
|
|