Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us