Skip to main content

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


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • 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)
       Using Java5 or Java6, which includes the JzOS
    version 2.3.0, ZFile.exists will return FALSE for
    a nonexistant PDS dataset.
    

Local fix

  • Use either Java 5 or Java 6, which include the JzOS version
    2.3.0
    

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:
    6.0.1 SR4 (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

    PM63004

  • Reported component name

    JAVA Z/OS 31

  • Reported component ID

    620700105

  • Reported release

    601

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-20

  • Closed date

    2012-05-08

  • Last modified date

    2012-09-04

  • 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

  • R601 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

z/OS family


Software version:
601


Reference #:
PM63004


Modified date:
2012-09-04

Translate my page

Content navigation