10.5.3 Forms for Indexed WRITE Statements (VMS only)

Indexed WRITE statements transfer output data to external records that have keyed access. (The OPEN statement establishes the attributes of an indexed file.)

Indexed WRITE statements always write a new record. You should use the REWRITE statement to update an existing record.

The syntax of an indexed WRITE statement is similar to a sequential WRITE statement, but an indexed WRITE statement refers to an I/O unit connected to an indexed file, whereas the sequential WRITE statement refers to an I/O unit connected to a sequential file.

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


 WRITE (eunit, format, [,iostat] [,err]) [io-list]


 WRITE (eunit, [,iostat] [,err]) [io-list]
Is an external unit specifier ([UNIT=]io-unit).
Is a format specifier ([FMT=]format).
Is a status specifier (IOSTAT=i-var).
Is a branch specifier (ERR=label) if an error condition occurs.
Is an I/O list.

For More Information:

Previous Page Next Page Table of Contents