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

When job 2 calls a catalog proc step3 shouldnt execute


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saravana iyappan

New User


Joined: 31 Mar 2004
Posts: 6
Location: Seattle

PostPosted: Wed Jun 30, 2004 11:45 am
Reply with quote

Job 1 & job 2 calls a catalog proc.
When job 1 calls it ,all steps of that proc should get executed.

When job 2 calls it,step 3 of that catalog proc shouldnt get executed(i.e all steps except step3)
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sat Jul 03, 2004 1:13 am
Reply with quote

Use IF condition in Catalog procedure and pass one parameter from JCL 1 & JCL2.

Depending on the value of parameter you can by pass step3 in procedure only for JCL 2
Back to top
View user's profile Send private message
saravana iyappan

New User


Joined: 31 Mar 2004
Posts: 6
Location: Seattle

PostPosted: Sat Jul 03, 2004 6:41 pm
Reply with quote

can u explain me in detail.
In which step i ve to use if condition & how 2 pass a value to Jcl.
Back to top
View user's profile Send private message
NAYAZSHAIK

New User


Joined: 23 Jun 2004
Posts: 2

PostPosted: Tue Jul 13, 2004 1:18 pm
Reply with quote



HAI
U CAN USE THE "COND" PARAMETER TO OBTAIN YOUR
RESULT
I WILL GIVE U THE EXAMPLE

CATLOG PROCEDURE:

PROCNAME PROC
STEP1 EXEC PGM
DD1 DNAME
STEP2 EXEC PGM
DD2 DNAME
STEP3 EXEC PGM
DD3 DANME

JOB

HERE U CAN USE THE COND PARAMETER
JOBNAME JOB
EXEC PROCNAME COND.STEP3=(0,LT)
DDNAME
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jul 16, 2004 9:07 pm
Reply with quote

Before I attempt an answer I'll take the liberty of rephrasing the ques:

"How do I write a proc that allows (facilitates?) one job to execute all the procsteps and another job to execute all procsteps EXCEPT Step3."

Not sure if this is what Saravana has in mind or (s)he's still interested.

//p1 proc s3cond='(0,le)'
//step1 exec pgm=p1
//step2 exec pgm=p2
//step3 exec pgm=p3,cond=&s3cond

//job1 ...
// exec p1,s3cond=

//job2 ...
// exec p1

Regards, Jack
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts DASD - non SMS - volser change - VSAM... JCL & VSAM 2
Search our Forums:

Back to Top