You could use DESERV. Works for PDS as well as PDSEs.

Sent from my new iPad

On 05 Oct 2015, at 19:45, Savor, Thomas (Norcross) <[email protected]> 
wrote:

>> One might wonder why it matters.  I suppose it might.  Does the OP also want 
>> to distinguish the cases of:
> Don’t care about UNIX.
> Yes, it is in some of my assembler programs.
> I have a bunch of PDS utility batch programs that have worked fine for PDS.
> But for PDSe not so much.
> On a PDS...reading the directory...a use MACRF=R,RECFM=U....works great.
> On a PDSE...reading the directory....it looks like I need MACRF=R,RECFM=FB.
>
> We have both PDS's and PDSe's everywhere.
>
> So, I would like to Open the DD, then determine what type of PDS it is, then 
> process file.
> I may have to close, change DCB field and re-open.
> Or determine what type of PDS a file is before opening it...if that's 
> possible.
>
> Tom
>
>
> ------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
> [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

------------------------------------------------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended 
recipient. If you are not the intended recipient , don't use or disclose it in 
anyway. Please let the sender know and delete the message immediately.
------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to