View previous topic :: View next topic
|
Author |
Message |
Premdev
New User
Joined: 05 Feb 2008 Posts: 24 Location: Coimbatore
|
|
|
|
Hi,
i have a case in which i want to execute a step in a jcl more than once.
i.e.) i have 5 input files and i need to create 5 output files corressponding to each input files using the same easytrieve program.
Here's the jcl step:
//P020 EXEC PGM=EZTPA00,REGION=4M,TIME=(15,00),COND=(0,NE)
//*
//EZTVFM DD UNIT=SYSDA,SPACE=(CYL,(100,20),RLSE)
//*
//FILEIN DD DSN=INPUT.FILE.1,DISP=SHR
//*
//FILEOUT DD DSN=OUTPUT.FILE.1,
// DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(10,20),RLSE),
// DCB=(LRECL=122,DSORG=PS,RECFM=FB)
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DISPFILE DD SYSOUT=*
//SYSIN DD DSN=AAA.BBB.CCC(EZTVPGM1),DISP=SHR
//*
Someone please help me on this.
Thanks in advance.
R's,
Prema. |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Hi,
Either process 5 files in your single Easytreive program. Or you have to execute this program in 5 steps as your input file is different in each case.
Please correct me if I am worng.
KSK |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Your requirement would work well if you made a PROCedure for this step and used a symbolic parameter for the .n part of the dsn.
The jobstream would execute this proc 5 times with different .n value for each execution. |
|
Back to top |
|
|
Premdev
New User
Joined: 05 Feb 2008 Posts: 24 Location: Coimbatore
|
|
|
|
Got it now. Thanx |
|
Back to top |
|
|
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
hi Premdev,
Can you provide the listing for your requirement which worked out..I have got a simillar kind of work...Will me more helpful if you could share the template of your solution.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You could use something like:
Code: |
//THEPROC PROC
//P020 EXEC PGM=SOMEPGM,REGION=4M,TIME=(15,00),COND=(0,NE)
//FILEIN DD DSN=INPUT.FILE.&FILNUM,DISP=SHR
//FILEOUT DD DSN=OUTPUT.FILE.&FILNUM,
// DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(10,20),RLSE),
// DCB=(LRECL=122,DSORG=PS,RECFM=FB)
|
To execute the PROC for multiple files:
Code: |
//somejob JOB
//FIRST EXEC THEPROC,FILNUM=1
//SECOND EXEC THRPROC,FILNUM=2
etc. . . |
|
|
Back to top |
|
|
samuel_Inba
New User
Joined: 03 Jan 2008 Posts: 53 Location: Chennai
|
|
|
|
Thanks a lot for your Immediate response. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
|