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

JCL code required for looping a step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Jan 31, 2006 9:22 pm
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
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
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: 463

PostPosted: Wed Feb 08, 2006 4:55 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top