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
 

 

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: 4648
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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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