IBM0122S
ONCODE=oncode-value The RECORD condition was raised because the length of the record variable was greater than the record length (FILE= or ONFILE= file-name).

Explanation

This message was produced for records that were shorter than the associated PL/I variable.

  1. For the READ statement using F-format records and a fixed-length variable in the INTO option, the excess bytes in the variable were undefined.
  2. For a LOCATE statement, where the maximum length of the records was less than the length of the PL/I variable, the buffer was not allocated.
  3. For a WRITE statement, the variable in the FROM option was longer than the maximum length of the records, and was truncated to the maximum record length.
  4. For a REWRITE statement, the variable in the FROM option was longer than the record it was to replace, and was truncated to the length of this record.

System action

The ERROR condition is raised.

Programmer response

Either supply an ON-unit for the RECORD condition so the program can continue running, or modify the program to make the length of the record variable the same as the length of the records on the data set. Refer to the language reference manual for this compiler for details of how such records are handled when the RECORD condition is raised.

Symbolic Feedback Code

IBM03Q