|
View previous topic :: View next topic
|
| Author |
Message |
vk0022789
New User
Joined: 24 Sep 2008 Posts: 15 Location: hyderabad
|
|
|
|
Hi,
I have four steps in my jcl.But i want to run step4 10 times...can anyone pls help me???
give some examples
Thanks,
kanna.R |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| JCL cannot loop -- you can copy step4 9 times in your job, or you can put step4 into a PROC and execute it 10 times. |
|
| Back to top |
|
 |
vk0022789
New User
Joined: 24 Sep 2008 Posts: 15 Location: hyderabad
|
|
|
|
Thanks for ur quick response...
can u give me examples for this one?????
I am beginner of JCL
Thanks,
Kanna.R |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Please attempt this yourself, it is the best way to learn.
If you then have problems, please post again and we will be happy to help. |
|
| Back to top |
|
 |
Bill Dennis
Active Member

Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
kanna,
Experiment with instream PROCs to get familiar with the concept of JCL procedures. Look at PROC and PEND statements in the JCL Reference manual. |
|
| Back to top |
|
 |
dhekaneva
New User
Joined: 13 Sep 2005 Posts: 1 Location: india
|
|
|
|
| //stepname exec pgm=XXXX,perform=10 will do |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10899 Location: italy
|
|
|
|
| Quote: |
| //stepname exec pgm=XXXX,perform=10 |
it would be nice if You posted the job sysout to show evidence of the correcteness of Your advice |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
| dhekaneva wrote: |
| //stepname exec pgm=XXXX,perform=10 will do |
perform means performance, not the number of times a step is executed |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| dhekaneva wrote: |
| //stepname exec pgm=XXXX,perform=10 will do |
Let's take your side that it would do what is being asked, but what if pgm=XXXX does not know about "perform"? . "XXXX" must stand for any program, right? |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
| dhekaneva wrote: |
| //stepname exec pgm=XXXX,perform=10 will do |
Extremely well tested before posting I shouldn't wonder  |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
| expat wrote: |
| dhekaneva wrote: |
| //stepname exec pgm=XXXX,perform=10 will do |
Extremely well tested before posting I shouldn't wonder  |
All the time im wondering what "Software engineer" means.
And JCL as "skill". |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
| Quote: |
| //stepname exec pgm=XXXX,perform=10 will do |
When offering a suggestion/solution, it would be best to also post the output from a successful execution of the "code". |
|
| Back to top |
|
 |
|
|