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
 

 

I want to run step4 10 times

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vk0022789

New User


Joined: 24 Sep 2008
Posts: 15
Location: hyderabad

PostPosted: Thu Jan 28, 2010 4:04 pm    Post subject: I want to run step4 10 times
Reply with quote

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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Thu Jan 28, 2010 4:10 pm    Post subject:
Reply with quote

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
View user's profile Send private message
vk0022789

New User


Joined: 24 Sep 2008
Posts: 15
Location: hyderabad

PostPosted: Thu Jan 28, 2010 4:14 pm    Post subject: Reply to: I want to run step4 10 times
Reply with quote

Thanks for ur quick response...


can u give me examples for this one?????

I am beginner of JCL

Thanks,
Kanna.R
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 28, 2010 4:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Jan 28, 2010 7:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dhekaneva

New User


Joined: 13 Sep 2005
Posts: 1
Location: india

PostPosted: Tue Feb 02, 2010 3:31 pm    Post subject:
Reply with quote

//stepname exec pgm=XXXX,perform=10 will do
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Tue Feb 02, 2010 3:39 pm    Post subject: Reply to: I want to run step4 10 times
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Tue Feb 02, 2010 3:41 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Feb 02, 2010 5:16 pm    Post subject:
Reply with quote

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"? icon_neutral.gif. "XXXX" must stand for any program, right?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 02, 2010 5:18 pm    Post subject:
Reply with quote

dhekaneva wrote:
//stepname exec pgm=XXXX,perform=10 will do

Extremely well tested before posting I shouldn't wonder icon_evil.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Tue Feb 02, 2010 5:31 pm    Post subject:
Reply with quote

expat wrote:
dhekaneva wrote:
//stepname exec pgm=XXXX,perform=10 will do

Extremely well tested before posting I shouldn't wonder icon_evil.gif


All the time im wondering what "Software engineer" means.
And JCL as "skill".
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 02, 2010 8:59 pm    Post subject:
Reply with quote

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
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 How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm
No new posts OMEGAMON to see In-DB2 times and Wait... Archana89 IBM Tools 4 Fri Mar 04, 2016 11:28 am
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts Repeating input records for variable ... ksouren007 DFSORT/ICETOOL 1 Fri Jul 31, 2015 4:16 pm
No new posts Executing a Job Step/ Job multiple ti... beeram527 JCL & VSAM 5 Fri Dec 12, 2014 7:28 am


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