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

Replacing Multiple DD name with parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ponam.jkjain

New User


Joined: 24 Nov 2007
Posts: 2
Location: Mumbai

PostPosted: Tue Mar 09, 2010 8:47 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Tue Mar 09, 2010 9:51 am
Reply with quote

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

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Mar 09, 2010 10:23 am
Reply with quote

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

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Mar 12, 2010 2:26 am
Reply with quote

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
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top