IBM0208S
ONCODE=oncode-value The UNDEFINEDFILE condition was raised because the wrong BLOCKSIZE or record length was specified (FILE= or ONFILE= file-name).

Explanation

One of the following conditions was detected:

  1. Block size was less than record length.
  2. For FB-format records, block size was not a multiple of record length.
  3. For VS-format and VBS-format consecutive files:
    • LRECL=X was specified but RECSIZE was not specified or was invalid in the ENVIRONMENT attribute.
    • The file was opened for update with a specified logical record size exceeding 32,756.
  4. For VS-format REGIONAL(3) files, logical record size was greater than block size minus four.
  5. FUNC=EO was specified with a record length not equal to 80 or FUNC=CO was specified with a record size not equal to 160.
  6. Column binary was specified with a record length not equal to 160 on an output file.
  7. FUNC=I (punch interpret) was specified with a record length not equal to 80 (or 81 if control characters are in use).

The ONCODE associated with this message is 87.

System action

The ERROR condition is raised.

Programmer response

The numbered responses below apply to the correspondingly numbered explanations above:

  1. Check the block size and record length specified in the BLKSIZE and RECSIZE options of the ENVIRONMENT attribute. If LINESIZE was specified, ensure it is compatible with BLKSIZE.
  2. If the argument of either option is a variable, ensure it is FIXED BINARY(31,0) STATIC and has been initialized.
  3. To correct this error:
    1. Specify a record size in the ENVIRONMENT attribute or correct its value.
    2. Specify a record size less than 32,757.
  4. Specify a record size less than or equal to the block size minus four.
  5. If FUNC=EO is specified, ensure the record length is 80. If FUNC=CO is specified, ensure the record length is 160.
  6. Ensure the record length is 160 when column binary is specified.
  7. If FUNC=I is specified, ensure the record length is 80.

Symbolic Feedback Code

IBM06G