View previous topic :: View next topic |
Author |
Message |
javedsk12 Beginner
Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Mon Jun 16, 2008 1:49 am Post subject: How to execute the JCL 10 times |
|
|
hi frnds,
I am having an JCL to create the generation using IEFBR14 i want to exeucte this JCL 10 times how to do that ??? can we execute any such jcl continuously by once giving the command ??
Regards,
Javed Shaikh _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jun 16, 2008 3:37 am Post subject: |
|
|
I presume each invocation has a different dataset being affected by the IEFBR14 so you could not actually submit it 10 times - you submit 10 variations once each.
So you can either sub/change/sub/etc until all 10 are done
or
You can have 10 IEFBR14 steps in one JCL each with its own dataset and sub that once
or
you can supply all 10 datasets to 1 execution of IEFBR14
I know which I would do. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
javedsk12 Beginner
Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Mon Jun 16, 2008 3:53 am Post subject: |
|
|
hi Nic,
Thanks for your reply.
As i mentioned i am creating GDG genertaion and limit is 10 for that one.
so there wont be any problem in that in terms of dataset duplication errror or else.
Again as i am creating generation i have specified like wise:
index-name(+1)
so no need to change dataset name or anything else,instead of submitting 10 different times i want to submit the JCL only once and it should go for 10 times _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
|
javedsk12 Beginner
Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Mon Jun 16, 2008 3:59 am Post subject: |
|
|
so i heard that we are having some command for that one please elaborate if u know anything _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jun 16, 2008 4:11 am Post subject: |
|
|
no there is not - you can ub a one-step job 10 time or you can just supply all 10 gdg ddnames to one execution or you can have 10 steps in one job. If doing in one job and/or step that the first gdg is +1, the second is +2 etc and take care if you are restarting at any time.
There is no loop concept in JCL. It goes from first to last sequentially - maybe missing steps depending on condition codes _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jun 16, 2008 4:16 am Post subject: |
|
|
couple of errors in the last post - 7th word s/b SUB ans THAT on 2nd line s/b THEN.
As a further comment - if someone has said that there is a command then it will probably be something home-grown. It would be very easy to set up an ISPF EDIT macro that took a numeric parameter and submitted the job being edited that number of times. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Mon Jun 16, 2008 6:25 am Post subject: |
|
|
Create you IEFBR14 step as an instream proc and execute it 10 times. |
|
Back to top |
|
|
javedsk12 Beginner
Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Mon Jun 16, 2008 6:29 am Post subject: |
|
|
hi craig,,
can you give a piece of code for that one ?? i didn't get how to exexute the proc 10 times.Till creation of proc it is fine.But how to execute that proc 10 times ??
javed _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jun 16, 2008 6:43 am Post subject: |
|
|
You know what a proc is?
You know how to execute it?
You know what an instream proc is?
You execute it the same way.
//instrm PROC
//step exec pgm=...
//ddname dd ...
:
// pend
//s010 exec instrm
//s020 exec instrm
:
//s100 exec instrm _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jun 16, 2008 6:47 am Post subject: |
|
|
Also - I just looked at the JCL reference manual through the 'Quick Manuals' link, did a search on instream and the first hit showed an exmple. The manuals are there to be used, not to be pretty (ugly) _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Mon Jun 16, 2008 7:03 am Post subject: |
|
|
Nic Clouston wrote: | Also - I just looked at the JCL reference manual through the 'Quick Manuals' link, did a search on instream and the first hit showed an exmple. The manuals are there to be used, not to be pretty (ugly) |
I wondered what those were for, I looked at them once but there weren't any pictures. |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jun 16, 2008 7:15 am Post subject: |
|
|
Quote: |
I wondered what those were for, I looked at them once but there weren't any pictures.
|
I know - soon sends you to sleep! But sometimes there are diagrams but not in colour and not, necessarily, explicit
I have, just out of curiosity, just looked at the 'sticky' at the top of the JCL forum and am reading the link from the last line - every newcomer should be e-mailed an edited version of it as part of their acceptance notification. Even I am learning from it! _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
|
|