View previous topic :: View next topic
|
Author |
Message |
rakhisoman
New User
Joined: 16 Mar 2007 Posts: 8 Location: Trivandrum,Kerala,India
|
|
|
|
Can anyone suggest me how can we skip first step in PROC from JCL? PROC can't be changed. I can only make changes to JCL. I tried giving
//jobname EXEC IPH805NR,
// UNITDA=TESTDA,
// ENV=IPHT,
// SOUT=*,
// JOBNAME=jobname,
// COND.SORTREVS=(0,NE)
But first step is still executed. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why not just perform a restart from the 2nd step of the proc |
|
Back to top |
|
|
rakhisoman
New User
Joined: 16 Mar 2007 Posts: 8 Location: Trivandrum,Kerala,India
|
|
|
|
Thank you |
|
Back to top |
|
|
rakhisoman
New User
Joined: 16 Mar 2007 Posts: 8 Location: Trivandrum,Kerala,India
|
|
|
|
If we use COND=ONLY with the first step, will that ensure that the first won't be executed at any time. Is there any probability that it may get executed. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you restart AFTER the first step then how can it get executed ? |
|
Back to top |
|
|
rakhisoman
New User
Joined: 16 Mar 2007 Posts: 8 Location: Trivandrum,Kerala,India
|
|
|
|
Instead of RESTART if I'm giving
//jobname EXEC IPH805NR,
// UNITDA=TESTDA,
// ENV=IPHT,
// SOUT=*,
// JOBNAME=jobname,
// COND.SORTREVS=ONLY
Will this ensure that the first step is not executed under any circumstances? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Rakhi,
Quote: |
If we use COND=ONLY with the first step, will that ensure that the first won't be executed at any time. Is there any probability that it may get executed. |
From manual:
Quote: |
You can specify the COND parameter on any EXEC statement in the job. However, the system evaluates a COND parameter on the first EXEC statement in a job as false. |
Hence the first step gets executed irrespective of the COND parameter. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Rakhi,
Quote: |
Instead of RESTART if I'm giving
|
Why are you not using the RESTART parameter? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Which is why I said to use RESTART |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
actually if you override the first step with a COND=ONLY, it will flush and execute from 2nd step.
Now I'm not saying this is my preferred way of starting from 2nd step.
Gerry |
|
Back to top |
|
|
rakhisoman
New User
Joined: 16 Mar 2007 Posts: 8 Location: Trivandrum,Kerala,India
|
|
|
|
Yeah RESTART will work I used it but I just wanted to know if COND=ONLY will also work.
Thank you Gerry I got my answer. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Nice hit Gerry. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Expat,
Does that mean that what I had posted was wrong?. Am I missing anything? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Aaru,
what you said is correct with the exception of COND=ONLY
Gerry |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Quote: |
what you said is correct with the exception of COND=ONLY |
Thanks Gerry. |
|
Back to top |
|
|
|