View previous topic :: View next topic
|
Author |
Message |
ponam.jkjain
New User
Joined: 24 Nov 2007 Posts: 2 Location: Mumbai
|
|
|
|
I have one JCL step having 70 input dd statements. And one output file out of it. The name of all input files are of two type.
e.g
1)
PROD.ABCD.APL1234.FILE
PROD.ABCD.APL3456.FILE
PROD.ABCD.APL1111.FILE
PROD.ABCD.APL2222.FILE
2)
PROD.ABCD.BGFI886D.APP3945.XMIT
PROD.ABCD.HPDT345F.APP2345.XMIT
PROD.ABCD.NHTFGTRF.APP5567.XMIT
Instead of coding all the names in the jcl I want to write only two
DD name like
INPUT DD DSN=PROD.ABCD.APLXXXX.FILE,DISP=SHR
DD DSN=PROD.ABCD.YYYY.APPXXXX.XMIT,DISP=SHR
Where XXXX = 1234,3456,4567,1234
YYYY =BGFI886D,HPDT345F.....
Please let me know how I can do this in JCL.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
Instead of coding all the names in the jcl I want to write only two |
If you want this to work, you will forego this want and put in the dd statements for each input file. You can concatenate the input files within a single ddname
Possibly there is somethng i am missing? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
Instead of coding all the names in the jcl I want to write only two
DD name like
INPUT DD DSN=PROD.ABCD.APLXXXX.FILE,DISP=SHR
DD DSN=PROD.ABCD.YYYY.APPXXXX.XMIT,DISP=SHR
|
Yes you can write two DD names and concatenate all require dataset.
But for sure you need to mention all dataset names which you need to concatenate, no shortcut like using wildcard to it. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
You cannot do strictly with JCL.
But you can probably write a rexx program that issues LISTCAT to determine dataset names, then build the JCL with those names. |
|
Back to top |
|
|
|