Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2086
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us