Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL code required for looping a step

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

New User


Joined: 31 Jan 2006
Posts: 32
Location: India

PostPosted: Tue Jan 31, 2006 9:13 pm    Post subject: JCL code required for looping a step
Reply with quote

hi,
I need JCL for looping the execution of a Step. If anyone knows, please post a reply.

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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jan 31, 2006 9:22 pm    Post subject: Re: JCL code required for looping a step
Reply with quote

I think you mean to say that you need the PROGRAM code for looping the execution of a step. A job step in JCL can only execute once.
Back to top
View user's profile Send private message
balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Thu Feb 02, 2006 8:47 pm    Post subject: Re: JCL code required for looping a step
Reply with quote

Hi Shanu,

Not the exact the solution, but we can do like this by two jcls

follow the steps

1) write a jcl which will run a cobol program which in turn will write
another jcl.

2) In the cobol program have a file which has the job card and joblib
card ,now using the perform loop in the cobol program write the
exec card steps in to a separate file(writing the same exec card
into the same file by looping,you can also say the the no of times to
loop the steps thru parm ).
3) Now concatenate the two files.

4) submit the the concatenated file thru INTRDR.


Try like this and please let me know if you find any other solution.


Regards,
Naga samba siva rao varanasi
Back to top
View user's profile Send private message
Shanu.sukoor

New User


Joined: 31 Jan 2006
Posts: 32
Location: India

PostPosted: Wed Feb 08, 2006 4:41 pm    Post subject:
Reply with quote

guys,
Please be clear about the qn

suppose I have a job with one step(or more) say STEP01. now I want to run this step 10 times.

Is there any JCL code for that? icon_question.gif
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Feb 08, 2006 4:55 pm    Post subject: Re: JCL code required for looping a step
Reply with quote

Hi,

Quote:
suppose I have a job with one step(or more) say STEP01. now I want to run this step 10 times.


You can write one JCL which submit teh requierd JCL 10 times and required JCL will run one by one.

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Wed Feb 08, 2006 5:42 pm    Post subject:
Reply with quote

Hi,

try this


corrections welcomed..........

Thanks,
Rajesh
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 IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us