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
 
Allocate PDS using REFDD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jerryte

Active User


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

PostPosted: Thu Jul 24, 2014 8:22 pm    Post subject: Allocate PDS using REFDD
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: 574
Location: The Universe

PostPosted: Thu Jul 24, 2014 9:12 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 445
Location: London

PostPosted: Fri Jul 25, 2014 12:57 pm    Post subject:
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    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 IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts symbolic parm - allocate dsn krrp JCL & VSAM 11 Sat Oct 31, 2015 8:27 pm
No new posts Allocate dataset with date and time jerryte JCL & VSAM 0 Thu Aug 06, 2015 9:48 pm
No new posts ALLOCATE REXX PDS to SYSPROC failure mambopras CLIST & REXX 4 Sat Apr 04, 2015 10:14 am

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