Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

In jcl how to execute only some steps by using cond

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
anatha

New User


Joined: 19 Jan 2006
Posts: 7

PostPosted: Thu Jan 19, 2006 5:08 pm    Post subject: In jcl how to execute only some steps by using cond
Reply with quote

Hi All ,


In JCL 5 steps is there.But i want to execute only step 2 and 4 by using cond. How can i code and in which step i will use cond. :?
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Jan 19, 2006 5:15 pm    Post subject: Re: In jcl how to execute only some steps by using cond
Reply with quote

HI,

Quote:
In JCL 5 steps is there.But i want to execute only step 2 and 4 by using cond. How can i code and in which step i will use cond. icon_confused.gif


This topic already discussed so many times in forum, Make a search you will get what u want.

Regards
Rupesh
Back to top
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Thu Jan 19, 2006 6:00 pm    Post subject:
Reply with quote

Hi Anatha,

code RESTART = step2 in job card, and in third step code COND = (0,LE),
and in 5th step code COND = (0,LE) .

correct me if i am wrong
Back to top
View user's profile Send private message
anatha

New User


Joined: 19 Jan 2006
Posts: 7

PostPosted: Thu Jan 19, 2006 6:05 pm    Post subject:
Reply with quote

Thankx
Back to top
View user's profile Send private message
Dariusz
Warnings : 1

New User


Joined: 11 Aug 2005
Posts: 27
Location: POLAND

PostPosted: Mon Jan 23, 2006 6:03 pm    Post subject:
Reply with quote

HI.
Generally you can use the next method:
Code:

//run proc c1=0,c2=0,c3=0,.....,cn=0
//code exec pgm=iefbr14
//step1 exec pgm=a1,cond=((&c1,eq,code))
//step2 exec pgm=a2,cond=((&c2,eq,code))
..........
//stepn exec pgm=an,cond=((&cn,eq,code))
//*  end run

In your job set parameter:
Code:

//aaa job
//go exec run,c4=1,c5=1

Step4 and step5 will by executed.
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Tue Jan 24, 2006 9:02 am    Post subject:
Reply with quote

Dariusz wrote:
HI.
Generally you can use the next method:
//run proc c1=0,c2=0,c3=0,.....,cn=0
//code exec pgm=iefbr14
//step1 exec pgm=a1,cond=((&c1,eq,code))
//step2 exec pgm=a2,cond=((&c2,eq,code))
..........
//stepn exec pgm=an,cond=((&cn,eq,code))
//* end run
In your job set parameter:
//aaa job
//go exec run,c4=1,c5=1
Step4 and step5 will by executed.



hai Dariusz,

can you please throw some light on
//go exec run, c4=1,c5=1. also what does

//run proc c1=0,c2=0,c3=0,.....,cn=0 mean. are we meaning the step name?

kind regards,

gowtham


what does the run signify here.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Jan 24, 2006 7:31 pm    Post subject: Re: In jcl how to execute only some steps by using cond
Reply with quote

Hmm, Dariusz, interesting concept! Seems like it works nice if you have certain programs you want to run "on demand".
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us