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
 

 

Replacing Multiple DD name with parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Replacing Multiple DD name with parameter
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

Site Director


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

PostPosted: Tue Mar 09, 2010 9:51 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Mar 12, 2010 2:26 am    Post subject: Reply to: Replacing Multiple DD name with parameter
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    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 Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm


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