WRITE Statement

The WRITE statement releases a record for an output or input/output file.

When the WRITE statement is executed, the associated indexed or relative file must be open in OUTPUT, I-O, or EXTEND mode. The associated sequential file must be open in OUTPUT or EXTEND (device types TAPEFILE, DISK, or DATABASE) mode.

The WRITE statement has five formats:
IBM Extension
End of IBM Extension
IBM Extension

The action of this statement can be inhibited at program run time by the INHWRT parameter of the OVRDBF CL command. When this parameter is specified, non-zero file status codes are not set for data dependent errors. Duplicate key and data conversion errors are examples of data dependent errors.

For more information on this command, see the CL and APIs section of the Programming category in the IBM® i Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/.

End of IBM Extension