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 Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 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 CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
No new posts Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm


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