View previous topic :: View next topic
|
Author |
Message |
Shanu.sukoor
New User
Joined: 31 Jan 2006 Posts: 32 Location: India
|
|
|
|
hi,
I need JCL for looping the execution of a Step. If anyone knows, please post a reply.
Thank you. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
balajiofcrrcoe
New User
Joined: 07 Jul 2005 Posts: 41 Location: chennai
|
|
|
|
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 |
|
|
Shanu.sukoor
New User
Joined: 31 Jan 2006 Posts: 32 Location: India
|
|
|
|
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? |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
Hi,
try this
corrections welcomed..........
Thanks,
Rajesh |
|
Back to top |
|
|
|