Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Specifies the file to be closed. Individual files can be selected or the default of *ALL can be nominated. For more information, refer to the section on Specifying File Names in I/O Commands.


IO_STATUS

Specifies the name of a field that is to receive the "return code" that results from the I/O operation.If the default value of *STATUS is used the return code is placed into a special field called #IO$STS which can be referenced in the RDML program just like any other field.

If a user field is nominated to receive the return code it must be alphanumeric with a length of 2. Even if a user field is nominated the special field #IO$STS is still updated.

For values, refer to I/O Return Codes.


IO_ERROR

Specifies what action is to be taken if an I/O error occurs when the command is executed.An I/O error is considered to be a "fatal" error. Some examples are file not found, file is damaged, file cannot be allocated. These types of errors stop the function from performing any processing at all with the file involved.

...