STATUS Function

Returns an error code which is equivalent to that which would have been returned via the SETTING clause in the previous file operation.

This function is provided for compatibility with MultiValue systems that do not include a SETTING clause in their file access statements.

Syntax

STATUS()

Comments

The STATUS function must be used immediately after the statement or function for which it is returning the error code.

STATUS can be used with the following:

CLOSESEQ statement

DELETESEQ statement

FLUSH statement

ICONVS function

MATREADU statement

OCONVS function

OPENSEQ statement

READBLK statement

READSEQ statement

READU statement

READVU statement

RECORDLOCKED function

SEEK statement

WEOFSEQ statement

WRITEBLK statement

WRITESEQ statement

 

 

See the descriptions of the above for details of the values returned.