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

Bypassing number of steps in JCL using COND Parameter.


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

New User


Joined: 29 Jun 2004
Posts: 6

PostPosted: Wed Jun 30, 2004 12:00 am
Reply with quote

In my job i have 10 steps. I dont want to execute the first 8 steps. Only 9th & 10th steps have to be executed. How can i code cond parameter for that job. Is there any other alternative for this problem other than cond.

Thanks
Prashanth
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jun 30, 2004 4:00 am
Reply with quote

The best way is to use Step Restart in the JOB card.

Regards, Jack.
Back to top
View user's profile Send private message
erasani_p

New User


Joined: 29 Jun 2004
Posts: 6

PostPosted: Wed Jun 30, 2004 7:37 am
Reply with quote

Can u give me the code for that. I never worked with restart.

Thanks
Prashant
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Wed Jun 30, 2004 3:08 pm
Reply with quote

RESTART can be coded in following manner.
Job card will look like -
Code:
//xxxxxxxx JOB 0000,'TEST',CLASS=J,MSGCLASS=X,MSGLEVEL=(1,1),RESTART=STEP09


Regards,
Sandip.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Jun 30, 2004 3:13 pm
Reply with quote

Just code restart=stepname in the job step.

In your case give the stepname as step9.

Thanks,
Anu
Back to top
View user's profile Send private message
erasani_p

New User


Joined: 29 Jun 2004
Posts: 6

PostPosted: Wed Jun 30, 2004 9:04 pm
Reply with quote

Thanks anuradha and sandeep for your quick reply.

Prashanth
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jun 30, 2004 10:49 pm
Reply with quote

Hi Prashant,

Be careful when you use restart. If the step is in a proc you must use the procstep name too.

That's why it's always best to check the manual. It contains that kind of detail.


Regards, Jack.
Back to top
View user's profile Send private message
v.suresh

New User


Joined: 29 Jun 2007
Posts: 5
Location: Bangalore

PostPosted: Wed Jul 04, 2007 8:28 pm
Reply with quote

For this same problem how we can use COND parameter?
Back to top
View user's profile Send private message
kavisuresh

New User


Joined: 22 May 2007
Posts: 7
Location: chennai

PostPosted: Tue Jul 10, 2007 4:25 pm
Reply with quote

If its an Override u can use the below statements which will flush 8steps and continue with 9th and 10th steps,

//Procname EXEC procname,
// COND.STEPNAME1=(0,LE),
// COND.STEPNAME2=(0,LE),
// COND.STEPNAME3=(0,LE),
// COND.STEPNAME4=(0,LE),
// COND.STEPNAME5=(0,LE),
// COND.STEPNAME6=(0,LE),
// COND.STEPNAME7=(0,LE),
// COND.STEPNAME8=(0,LE)

Hope the above may help u

Regards,
Kavisuresh
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top