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
 

 

Running a JOB 15 times with diff inputs

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

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Mon Jan 16, 2006 7:23 pm    Post subject: Running a JOB 15 times with diff inputs
Reply with quote

Hi,

I want to run the same job 15 or more times with different input dataset and output dataset eachtime. Can I do this in a single JCL?
Back to top
View user's profile Send private message

MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Jan 16, 2006 7:56 pm    Post subject:
Reply with quote

Use a Proc!
I suppose that Proc is the easy way to do what you need.

Adapt your jcl like a PROC(no DD * and stepname unique and if you want you can also use variables) so decide to put your proc in a library OR fill at the end of the job a PEND.
So, write "n" statemet that referrs to the PROC and override the input/output each time( without effort...).

I hope in this suggest.
Back to top
View user's profile Send private message
VENKATA999
Warnings : 2

New User


Joined: 05 Jan 2006
Posts: 44

PostPosted: Mon Jan 16, 2006 9:58 pm    Post subject: Please explain in more details
Reply with quote

Hi ,

Can anyone explain in more detail . Please

Thank you,
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Jan 17, 2006 12:54 am    Post subject:
Reply with quote

This is a sample about PROC PEND but within you can make different override and many other thing... depend on your need.
Code:

//myjob JOB ecc...
//*--------------------------------------------------------------*
//MYPROC PROC INP='IFILE01',OUT='OFILE01'
//STEP005D EXEC PGM=IEFBR14
//DD1      DD DISP=(MOD,DELETE),SPACE=(1,(1,1),),
//            DSN=HLQ.IPI.ecc.&OUT
//STEP010P EXEC PGM=MYPROG
//INDD     DD DISP=SHR,DSN=HLQ.IPI.ecc.&INP
//OUTDD    DD DISP=(,CATLG,DELETE),DCB=*.INDD,
//            SPACE=(CYL,(1,1),RLSE),
//            DSN=HLQ.IPI.ecc.&OUT
// PEND
//*---Take default value
//PROC01   EXEC PROC=MYPROC
//*---Specify your need
//PROC02   EXEC PROC=MYPROC,INP='IFILE02',OUT='OFILE02'
//*---Override output datasetname and other
//PROC03   EXEC PROC=MYPROC
//STEP005D.DD1 DD DISP=(MOD,DELETE),SPACE=(1,(1,1),),
// DSN=HLQ.IPI.ecc.OFILE03.BIS
//STEP010P.OUTDD DD DISP=(,CATLG,DELETE),SPACE=(CYL,(10,10),RLSE),
// DSN=HLQ.IPI.ecc.OFILE03.BIS
//*---all the time you need to repeat the proc(max 127, PROC15 included)
...
//*---Override Input dataset
//PROC15   EXEC PROC=MYPROC,OUT='OFILE15'
//STEP010P.INDD DD DISP=SHR,DSN=HLQ.IPI.ecc.IFILE15.BIS


I hope in this suggest and if you need further detail I will happy to give you.
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 Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm


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