PL/I

PL/I

PL/I

 View Only
  • 1.  Open using TITLE(DSN());

    Posted Tue June 10, 2014 02:50 PM

    Hi,

    I am issueing an OPEN specifying a TITLE value containing "DSN(MY.DATASET(MBR0001)),SHR)" in an attempt to read records from a PDS member.

    The PDS is there, and the member is in the PDS, but I am getting an UNDEFINEDFILE CONDITION raised.

    Is using the TITLE(DSN()) to access a PDS member supported and reasonable for input? Should this work?

    Frank

    Frank_O_Myers@IBM


  • 2.  Re: Open using TITLE(DSN());

    Posted Tue June 10, 2014 03:32 PM

    The manual page shows TITLE(DSN()) being used for a PDS member, but oddly, the syntax shown has a space between the base dataset name and the member.  Also, the base dataset name must be fully qualified; no implicit prefix is added.

    Does that help?

    PeteKidwell


  • 3.  Re: Open using TITLE(DSN());

    Posted Tue June 10, 2014 03:43 PM

    Pete,

    I tried adding the space. It still gets the UNDEFINEDFILE condition.

    Thanks for the suggestion.

    Frank

    Frank_O_Myers@IBM


  • 4.  Re: Open using TITLE(DSN());

    Posted Wed June 11, 2014 03:19 PM

    Using BPXWDYN instead of the convoluted TITLE interface was the solution.

    Frank_O_Myers@IBM