Direct Array Row

The form WAIT(<direct array row>) is one of the ways in which a program can determine if a previously initiated direct I/O statement has finished. This form can be used as a Boolean function. When the I/O statement fails, the value TRUE is returned. When the statement is successful, the value FALSE is returned. Specifically, this form of the WAIT statement returns a value similar to that returned by the file attribute IORESULT, with certain exceptions. Refer to the discussion of the IORESULT attribute in the File Attributes Programming Reference Manual.