IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Running a JOB 15 times with diff inputs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top