IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

In jcl how to execute only some steps by using cond


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 463

PostPosted: Thu Jan 19, 2006 5:15 pm
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
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
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
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
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

Global Moderator


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

PostPosted: Tue Jan 24, 2006 7:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top