10.3.3 Forms for Indexed READ Statements (VMS only)

Indexed READ statements transfer input data from external records that have keyed access.

In an indexed file, a series of records can be read in key value sequence by using an indexed READ statement and sequential READ statements. The first record in the sequence is read by using the indexed statement, the rest are read by using the sequential READ statements.

An indexed READ statement can be formatted or unformatted, and takes one of the following forms:

Formatted:

READ (eunit, format, key [, keyid] [, iostat] [, err]) [io-list]

Unformatted:

READ (eunit, key [, keyid] [, err]) [io-list]

eunit
Is an external unit specifier ([UNIT=]io-unit).


format
Is a format specifier ([FMT=]format).


key
Is a key specifier (KEY[con]=value).


keyid
Is a key-of-reference specifier (KEYID=kn).


iostat
Is a status specifier (IOSTAT=i-var).


err
Is a branch specifier (ERR=label) if an error condition occurs.


io-list
Is an I/O list.

For More Information:


Previous Page Next Page Table of Contents