jerryte
Active User
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
|
|
|
|
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? |
|