View previous topic :: View next topic
|
Author |
Message |
saravana iyappan
New User
Joined: 31 Mar 2004 Posts: 6 Location: Seattle
|
|
|
|
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 |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
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 |
|
|
saravana iyappan
New User
Joined: 31 Mar 2004 Posts: 6 Location: Seattle
|
|
|
|
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 |
|
|
NAYAZSHAIK
New User
Joined: 23 Jun 2004 Posts: 2
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|