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: 4649
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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm


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