STATUS


Use the STATUS function after an OPENPATH statement to find the cause of a file open failure (that is, for a statement in which the ELSE clause is used). The following values can be returned if the statement is unsuccessful:

COMMAND SYNTAX

STATUS ( )

 

For File access commands

READ, WRITE, OPEN

Previous Operation

Value = 0 if successful

Value = Operating System error code if previous command failed

13 – permission denied on UNIX systems

OCONV Conversions

0 = successful

1 = invalid conversion requested

3 = conversion of possible invalid date


jBC