7.2.3 Indexed READ Statements (VMS only)

Indexed READ statements transfer input data to internal storage from external records by using keyed access.

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

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

Formatted

READ (extu,fmt,key [,keyid] [,iostat] [,err]) [iolist]

Unformatted

READ (extu,key [,keyid] [,iostat] [,err]) [iolist]
extu
Is an external unit specifier.
fmt
Is a format specifier.
key
Is a key specifier.
keyid
Is a key-of-reference specifier.
iostat
Is an I/O status specifier.
err
Is a transfer-of-control specifier.
iolist
Is the I/O-list specifier.

The control-list parameters are extu, fmt, key, keyid, iostat, and err. The I/O list parameter is iolist.

For More Information:


Previous Page Next Page Table of Contents