Topic
3 replies Latest Post - ‏2014-06-11T19:19:27Z by Frank_O_Myers@IBM
Frank_O_Myers@IBM
Frank_O_Myers@IBM
12 Posts
ACCEPTED ANSWER

Pinned topic Open using TITLE(DSN());

‏2014-06-10T18:49:53Z |

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

  • PeteKidwell
    PeteKidwell
    5 Posts
    ACCEPTED ANSWER

    Re: Open using TITLE(DSN());

    ‏2014-06-10T19:32:11Z  in response to Frank_O_Myers@IBM

    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?

    • Frank_O_Myers@IBM
      Frank_O_Myers@IBM
      12 Posts
      ACCEPTED ANSWER

      Re: Open using TITLE(DSN());

      ‏2014-06-10T19:42:44Z  in response to PeteKidwell

      Pete,

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

      Thanks for the suggestion.

      Frank

  • Frank_O_Myers@IBM
    Frank_O_Myers@IBM
    12 Posts
    ACCEPTED ANSWER

    Re: Open using TITLE(DSN());

    ‏2014-06-11T19:19:27Z  in response to Frank_O_Myers@IBM

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