Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

I/O Message Specifier (IOMSG=)

The I/O message specifier designates a variable to contain the message to be returned when an I/O error occurs. It takes the following form:

IOMSG=msg-var

msg-var

Is a scalar default character variable.

If an error (ERR=), end-of-file (END=), or end-of-record (EOR=) condition occurs during execution of an I/O statement, msg-var is assigned an explanatory message.

If no error occurs, the value of the variable remains unchanged.