MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bypassing number of steps in JCL using COND Parameter.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
erasani_p
Beginner


Joined: 28 Jun 2004
Posts: 14
Topics: 10

PostPosted: Tue Jun 29, 2004 12:31 pm    Post subject: Bypassing number of steps in JCL using COND Parameter. Reply with quote

My JCL contains 10 steps. I want to skip first 8 steps and execute only the last two steps. How can i go about that?

Any help is appreicated.

Thanks
Prashanth
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 29, 2004 12:45 pm    Post subject: Reply with quote

Erasani,

1.Use a RESTART parameter.
2.Delete steps 1 thru 7 and run the job
3.Copy steps 8 thru 10 and run it as a seperate job.

Hope this help...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
erasani_p
Beginner


Joined: 28 Jun 2004
Posts: 14
Topics: 10

PostPosted: Tue Jun 29, 2004 1:18 pm    Post subject: Reply with quote

I cannot delete the steps from JCL. If u can give the JCL for Restart parameter solution that will be a great help.

Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 29, 2004 1:33 pm    Post subject: Reply with quote

erasani,

Code:

//USERIDA JOB (,1722),           
//             'ERASANI',         
//             CLASS=A,           
//             MSGCLASS=Y,       
//             MSGLEVEL=(1,1),
//             RESTART=STEP08,
//             NOTIFY=&SYSUID
//*                         
//STEP01   EXEC PGM=
..     
//STEP02   EXEC PGM=
..     
//STEP03   EXEC PGM=
..     
//STEP04   EXEC PGM=
..     
//STEP05   EXEC PGM=
..     
//STEP06   EXEC PGM=
..     
//STEP07   EXEC PGM=
..     
//STEP08   EXEC PGM=
..     
//STEP09   EXEC PGM=
..     
//STEP10   EXEC PGM=


Check this link which explains in detail about the restart parameter

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/20.23?DT=20030423085347

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Dec 08, 2004 9:06 am    Post subject: Reply with quote

Hi,

You can use RESTART parameter as mentioned below.
RESTART=STEP08,COND=(0,LE) in your job card.

This will start the execution from STEP08.
Back to top
View user's profile Send private message Send e-mail
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Dec 09, 2004 1:04 am    Post subject: explain why u coded COND=(0,LE) Reply with quote

explain why u coded , COND=(0,LE) .RESTART shuld do the job.why ure chceking the return code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group