Accessing Z/OS Files with Java

General discussion on the JZOS batch launcher and toolkit
Post Reply
Droopie

Accessing Z/OS Files with Java

Post by Droopie »

Hello,

I want to know if JZOS is able to acces all the different Z/OS files (HFS, VSAM, GDG, QSAM) ?

I need to find Java API for accessing (read/delete/create) all the Z/OS files.

Thanks for your response.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Yes, the ZFile class included in the JZOS toolkit is a thin JNI wrapper around the C IO library function calls (fopen, fwrite, fread, fclose, etc). These calls can be used to do IO to just about any kind of dataset.

For details, refer to the ZFile JavaDoc:

http://jzos.com/docs/javadoc/com/doveta ... ZFile.html

For each method, this documentation points you to the underlying C/C++ library routine and C/C++ programming guide which provides detailed information on accessing all kinds of files or datasets on z/OS.

If you have any other questions, feel free to ask here.
Regards,
Kirk Wolf
Post Reply