Skip to main content

 
IBM Systems  > Mainframe servers  > Operating systems  > 

Java Record I/O (JRIO) Overview

(last updated October, 2011)

  
dblue_rule.gif

IBM Java Record I/O (JRIO) is deprecated as of SDK 6.0.1. No new function will be added to any release of IBM Java Record I/O (JRIO).

IBM 31-bit SDK for z/OS, Java Technology Edition, V7.0 and IBM 64-bit SDK for z/OS, Java Technology Edition, V7.0 are planned to be the last releases to support the JRIO component.

We strongly recommend migrating to IBM JZOS Batch Toolkit, which currently has equivalent functionality and will be enhanced with new functions.

For more comprehensive information, refer to the IBM JZOS Batch Toolkit for z/OS SDKs webpage.

For migration specifics, refer to JRIO to JZOS Migration and Sample Code webpage.

For API specifics, refer to IBM JZOS Batch Toolkit API.


grey_rule.gif

Additional JRIO documentation is available in both HTML and PDF formats.

JRIO lets Java applications access traditional OS/390 file systems in addition to the Hierarchical File System (HFS). JRIO makes it easier for Java applications to access records within files and to access file systems through native methods when java.io Application Programming Interfaces (APIs) do not support those file systems.

JRIO is a class library, similar to java.io. While java.io provides byte-oriented or field-oriented access to files, JRIO provides record-oriented access. While java.io provides sequential and random access, JRIO applications read, append, and update records by providing the following types of access:

  • Sequential
  • Random
  • Keyed

grey_rule.gif

What JRIO helps you do

JRIO lets record-oriented applications (supporting multiple file systems) run using files on different file systems. It also provides a set of OS/390 native code drivers to access:

  • Virtual Sequential Access Method (VSAM) data sets (KSDS only)
  • Non-VSAM record-oriented data sets
  • The system catalog
  • Partitioned data set (PDS) directory

JRIO provides indexed I/O access to records within a VSAM Key Sequenced Data Set (KSDS). The VSAM support uses OS/390 native code to provide a set of concrete classes that implement the KeyedAccessRecordFile class. This lets you access records:

  • In entry sequence order
  • By primary unique key
  • By alternate unique or non-unique key

JRIO focuses on providing sequential and random I/O access to record-oriented data within non-VSAM sequential data sets and PDS.

The non-VSAM support uses OS/390 native code to provide a set of concrete classes and new directory classes that use underlying non-VSAM physical record files. This includes:

  • Listing the High Level Qualifiers (HLQ) from the system catalog
  • Listing data sets for a given HLQ
  • Listing the members of a PDS

JRIO provides support for sequential and random I/O access to records within HFS files. The HFS support uses pure Java code to provide a set of concrete classes and directory classes that use the underlying java.io.

JRIO also provides navigational support for HFS directories.


grey_rule.gif

Comparing JRIO and java.io

The following table summarizes some differences between java.io and JRIO:

java.io JRIO
stream of bytes or fields stream of records
sequential and random access sequential, random, and keyed access
binary and text files binary files only -- binary and text fields
concrete classes interfaces, handles, and concrete classes
data input stream nonapplicable

grey_rule.gif

For more information, refer to JRIO frequently asked questions.


 

suncup.gif