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

Allocate PDS using REFDD


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

Active User


Joined: 29 Oct 2010
Posts: 202
Location: Toronto, ON, Canada

PostPosted: Thu Jul 24, 2014 8:22 pm
Reply with quote

I want to allocate a pds dataset by refering to another pds via a dd name. Below is what I tried (this is just a simplfied sample):
Code:
//TEMP1   EXEC PGM=IEFBR14
//NEWDD  DD DSN=an-existing-pds,
//          DISP=SHR
//******************************************
//ALLOC  EXEC PGM=IEFBR14
//PDS    DD DSN=a-new-pds,
//  DISP=(NEW,CATLG),SPACE=(CYL,(1,1,1)),
//  REFDD=*.TEMP1.NEWDD

This doesn't work. The new pds has an invalid dcb. I think the program needs to open and close the pds for it to work.
I want to avoid using a LIKE= parm since this requires the full datset name. I want to refer to another dd name.
Is there another method?
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu Jul 24, 2014 9:12 pm
Reply with quote

You need to spend some quality time reading the JCL Reference manual for your z/OS release.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Fri Jul 25, 2014 12:57 pm
Reply with quote

Try DCB=*.TEMP1.NEWDD
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 Is it possible to allocate DA dataset... All Other Mainframe Topics 5
No new posts How to force ISPF to allocate ISPF te... TSO/ISPF 9
This topic is locked: you cannot edit posts or make replies. Unable to allocate Message Library in... CLIST & REXX 13
No new posts Need to allocate SDSNLOAD for DSNREXX... DB2 16
No new posts IDCAMS Allocate & Repro JCL & VSAM 9
Search our Forums:

Back to Top