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
 

 

I want to execute only step20 to step40 in a JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Connect_G

New User


Joined: 07 Jun 2006
Posts: 5
Location: Chennai

PostPosted: Wed Jun 07, 2006 2:26 pm    Post subject: I want to execute only step20 to step40 in a JCL
Reply with quote

Hello World of Mainframes !!

I am new member and very glad to be a part of this Forum.

I am beginner . . Today we are asked a question i.e.,

There is a JCL containing 100 steps
i want to execute the steps from
step20 to step40 How can i do that ??

Please gimme the solution

Thank U
Back to top
View user's profile Send private message

nagappaankad

New User


Joined: 20 Feb 2006
Posts: 1
Location: Bangalore

PostPosted: Wed Jun 07, 2006 4:54 pm    Post subject: Re: I want to execute only step20 to step40 in a JCL
Reply with quote

Restart from step 20 and code null statement after step 40. I hope this will do.

Nagappa S Ankad.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jun 07, 2006 5:25 pm    Post subject:
Reply with quote

Hi,
You might like to use restart and cond in your job.
This will do it.

This has been discussed in this forum before.

so, please search the forum before posting a question icon_smile.gif

Thanks,
Parikshit
Back to top
View user's profile Send private message
Connect_G

New User


Joined: 07 Jun 2006
Posts: 5
Location: Chennai

PostPosted: Thu Jun 08, 2006 1:23 pm    Post subject: Re: I want to execute only step20 to step40 in a JCL
Reply with quote

Thank you Parikshit . .
i too thought the same . .
and here is a better solution i think

solution . . .

This can be done by using the predefined utilities
IEBEDIT & INTRDR
this is the JCL

// JOB . . .
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=A.PDS(M1),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP20-STEP30
/*


WE CAN ALSO EXECUTE ONLY REQUIRED STEPS

//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP3,STEP50,STEP20
/*


IN THE EDIT TYPE WE CAN USE "EXCLUDE" ALSO FOR EXCLUDING THE REQUIRED STEPS FROM EXECUTION

//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=STEP100,STEP20 (OR) STEP20-STEP30
/*
Back to top
View user's profile Send private message
saira_mansoor
Currently Banned

New User


Joined: 05 Apr 2006
Posts: 10
Location: NOIDA

PostPosted: Thu Jun 08, 2006 5:45 pm    Post subject: Re: I want to execute only step20 to step40 in a JCL
Reply with quote

In Jobcard, if we give restart=step20 means, it will execute the steps from 20 onwards, and the // (Null statement) after the 40th step, will terminate the job after executing the 40th step.
Back to top
View user's profile Send private message
cjcpr

New User


Joined: 21 Mar 2006
Posts: 21
Location: USA

PostPosted: Fri Jun 09, 2006 7:24 am    Post subject: Re: I want to execute only step20 to step40 in a JCL
Reply with quote

Connect_G wrote:
Thank you Parikshit . .
i too thought the same . .
and here is a better solution i think

solution . . .

This can be done by using the predefined utilities
IEBEDIT & INTRDR
this is the JCL

// JOB . . .
//STEP1 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=A.PDS(M1),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP20-STEP30
/*


WE CAN ALSO EXECUTE ONLY REQUIRED STEPS

//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=STEP3,STEP50,STEP20
/*


IN THE EDIT TYPE WE CAN USE "EXCLUDE" ALSO FOR EXCLUDING THE REQUIRED STEPS FROM EXECUTION

//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=STEP100,STEP20 (OR) STEP20-STEP30
/*


this one seems like a looooooooooong shot. Why can't we have it simple?
Back to top
View user's profile Send private message
Connect_G

New User


Joined: 07 Jun 2006
Posts: 5
Location: Chennai

PostPosted: Fri Jun 09, 2006 2:23 pm    Post subject: Re: I want to execute only step20 to step40 in a JCL
Reply with quote

Even its a long shot its a good solution !!
Back to top
View user's profile Send private message
varun_sharma

New User


Joined: 08 Jun 2005
Posts: 19
Location: new delhi

PostPosted: Fri Jun 09, 2006 3:20 pm    Post subject: Re: I want to execute only step20 to step40 in a JCL
Reply with quote

Hi

Instead of this complex JCL simply use Restart for Step 20 and from there onwards use COND or if-and-else. Please let me know if you are not able to get me.

Cheers
Varun
Back to top
View user's profile Send private message
jasorn

Active User


Joined: 12 Jul 2006
Posts: 153
Location: USA

PostPosted: Wed Jul 12, 2006 3:50 pm    Post subject: An age old question
Reply with quote

There are basically two approaches to this problem. The first is the quick and easy one in which you just put in the restart and the '//'. That has is problem atic if you chane the steps you want to run a lot. The other is a more permant solutions using condition code logic built into every step or some other tool such as the one mentioned here. They all have their pros and cons. I'd try some and see which you like the best.
Back to top
View user's profile Send private message
sreenivas_mf

New User


Joined: 18 Jul 2006
Posts: 5
Location: hyd

PostPosted: Tue Jul 18, 2006 8:54 pm    Post subject:
Reply with quote

hi,
by using rd(restart definition), cond parameters we can execute the jobs in our required manner
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 Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm


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