IBM Support

PM64118: ZFILE.EXISTS THROWS ZFILEEXCEPTION FOR A NONEXISTENT PDS DATASET NAME AND MEMBER INSTEAD OF RETURNING FALSE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Using JzOS build version 2.4.0 or later (shipped
    with Java 6.0.1 and Java 7), class ZFile method exists throws
    ZFileException
    For example:
    Exception in thread "main" com.ibm.jzos.ZFileException:
    //'A.B.C': fopen() failed;
    EDC5049I The specified file name could not be located.
    ; errno=49 errno2=0xc00b0641 last_op=50 errorCode=0x21708
    at com.ibm.jzos.ZFile.fopen(Native Method)
    at com.ibm.jzos.ZFile.doZFileOpen(ZFile.java:601)
    at com.ibm.jzos.ZFile.<init>(ZFile.java:464)
    at com.ibm.jzos.PdsDirectory.<init>(PdsDirectory.java:72)
    at com.ibm.jzos.ZFile.dsExists(ZFile.java:214)
    at com.ibm.jzos.ZFile.exists(ZFile.java:276)
    at JzOSTest.main(JzOSTest.java:7)
    .
    Stack Trace: EDC5049I The specified file name could not be
    located.
    ; errno=49 errno2=0xc00b0641 last_op=50 errorCode=0x21708
    at com.ibm.jzos.ZFile.fopen(Native Method)
    at com.ibm.jzos.ZFile.doZFileOpen(ZFile.java:601)
    at com.ibm.jzos.ZFile.<init>(ZFile.java:464)
    at com.ibm.jzos.PdsDirectory.<init>(PdsDirectory.java:72)
    at com.ibm.jzos.ZFile.dsExists(ZFile.java:214)
    at com.ibm.jzos.ZFile.exists(ZFile.java:276)
    at JzOSTest.main(JzOSTest.java:7)
    .
    

Local fix

Problem summary

  • The problem is caused when calling ZFile.exists() on a PDS
    member with a nonexistent PDS and member name.
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR3 (z/OS 31-bit)
    .
    JZOS is updated such that calling ZFile.exists() on a PDS member
    with a nonexistent PDS and member name will return false,
    instead of throwing a ZFileException.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM64118

  • Reported component name

    JAVA Z/OS 31

  • Reported component ID

    620700105

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-05-08

  • Closed date

    2012-05-08

  • Last modified date

    2012-05-31

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA Z/OS 31

  • Fixed component ID

    620700105

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"700","Edition":"","Line of Business":{"code":"LOB16","label":"Mainframe HW"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"700","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 August 2022