IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Skip the first step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Wed Sep 17, 2008 2:53 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 17, 2008 2:54 pm
Reply with quote

Why not just perform a restart from the 2nd step of the proc
Back to top
View user's profile Send private message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Wed Sep 17, 2008 3:02 pm
Reply with quote

Thank you icon_smile.gif
Back to top
View user's profile Send private message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Wed Sep 17, 2008 3:30 pm
Reply with 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.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 17, 2008 3:31 pm
Reply with quote

If you restart AFTER the first step then how can it get executed ?
Back to top
View user's profile Send private message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Wed Sep 17, 2008 3:37 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 3:38 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 3:40 pm
Reply with quote

Rakhi,

Quote:
Instead of RESTART if I'm giving



Why are you not using the RESTART parameter?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 17, 2008 3:40 pm
Reply with quote

Which is why I said to use RESTART icon_rolleyes.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Sep 17, 2008 3:47 pm
Reply with quote

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
View user's profile Send private message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Wed Sep 17, 2008 3:52 pm
Reply with quote

Yeah RESTART will work icon_smile.gif 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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 17, 2008 4:00 pm
Reply with quote

Nice hit Gerry.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 4:17 pm
Reply with quote

Expat,

Quote:
Nice hit Gerry.


Does that mean that what I had posted was wrong?. Am I missing anything?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Sep 17, 2008 4:30 pm
Reply with quote

Hi Aaru,

what you said is correct with the exception of COND=ONLY


Gerry
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 4:51 pm
Reply with quote

Quote:
what you said is correct with the exception of COND=ONLY


Thanks Gerry.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top