Page 1 of 1

Use of dynalloc to retrieve DD name of a dataset.

PostPosted: Wed Dec 21, 2011 2:41 pm
by meghna
Hello,

I need help in retrieving DD name given the dataset name. I read it somewhere that this can be done using DYNALLOC.
Can somebody please tell me how to do this?

Regards
Meghna

Re: Use of dynalloc to retrieve DD name of a dataset.

PostPosted: Wed Dec 21, 2011 2:47 pm
by enrico-sorichetti
quote where You have read it , please, it might be interesting to know ...
using DYNALLOC You can find the DSNAME from the DDNAME ( not the other way around )

Re: Use of dynalloc to retrieve DD name of a dataset.

PostPosted: Wed Dec 21, 2011 3:05 pm
by meghna
Thanks for your reply.
I dont remember where I read it..
Was not sure whether this can be done was just trying to do it.

Regards,
Meghna

Re: Use of dynalloc to retrieve DD name of a dataset.

PostPosted: Wed Dec 21, 2011 7:44 pm
by steve-myers
You are probably referring to the information retrieval function of dynamic allocation. You use the DINDSNAM key to specify the dataset name and the DINRTDDN key to get the matching DD name.

Re: Use of dynalloc to retrieve DD name of a dataset.

PostPosted: Thu Dec 22, 2011 10:03 am
by steve-myers
Dynamic allocation is documented fairly well in MVS Authorized Assembler Services Guide for your release. 99% of dynamic allocation can be done by ordinary programs, no authorization is required.