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
 

 

When job 2 calls a catalog proc step3 shouldnt execute

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

New User


Joined: 31 Mar 2004
Posts: 7
Location: Seattle

PostPosted: Wed Jun 30, 2004 11:45 am    Post subject: When job 2 calls a catalog proc step3 shouldnt execute
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    Post subject: Re
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: 7
Location: Seattle

PostPosted: Sat Jul 03, 2004 6:41 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts ERM-Diagram of SysIBM-Catalog-Tables Auryn DB2 2 Fri Feb 17, 2017 6:22 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm


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