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
 

 

Skip the first step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Skip the first step
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 2:54 pm    Post subject:
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    Post subject: Reply to: Skip the first step
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    Post subject: Reply to: Skip the first step
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 3:31 pm    Post subject:
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    Post subject: Reply to: Skip the first step
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: 1288
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 3:38 pm    Post subject: Reply to: Skip the first step
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: 1288
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 3:40 pm    Post subject: Reply to: Skip the first step
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 3:40 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Wed Sep 17, 2008 3:47 pm    Post subject:
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    Post subject: Reply to: Skip the first step
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: 8593
Location: Back in jolly old England

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

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

Senior Member


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

PostPosted: Wed Sep 17, 2008 4:17 pm    Post subject: Reply to: Skip the first step
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: 1703
Location: Australia

PostPosted: Wed Sep 17, 2008 4:30 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 4:51 pm    Post subject: Reply to: Skip the first step
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    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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts why i need hit enter after EXECIO * D... jackzhang75 CLIST & REXX 10 Fri May 20, 2016 9:16 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm


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