|
|
| Author |
Message |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 136 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 |
|
 |
References
|
|
 |
Sambhaji
Active Member
Joined: 16 Feb 2007 Posts: 837 Location: Pune, India
|
|
|
|
| Use IEBEDIT |
|
| Back to top |
|
 |
Sambhaji
Active Member
Joined: 16 Feb 2007 Posts: 837 Location: Pune, India
|
|
|
|
| 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: 6469 Location: Brussels once more ...
|
|
|
|
| Or search the forum as this HOMEWORK question appears quite frequently. |
|
| Back to top |
|
 |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 136 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: 6469 Location: Brussels once more ...
|
|
|
|
| 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: 136 Location: India
|
|
|
|
| Sure expat.. i will search the forum.. |
|
| Back to top |
|
 |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 136 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: 6469 Location: Brussels once more ...
|
|
|
|
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
Global Moderator
Joined: 14 Mar 2007 Posts: 5403 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 |
|
 |
Sambhaji
Active Member
Joined: 16 Feb 2007 Posts: 837 Location: Pune, India
|
|
|
|
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: 136 Location: India
|
|
|
|
| Thanks Sabhaji. |
|
| Back to top |
|
 |
|
|