At 00:21 +0200 on 04/02/2015, Bernd Oppolzer wrote about Re: migrating compiler versions:

Hello Frank,

cited from earlier post:

Whereas in previous versions of ECOBOL a minimum and maximum record length
did not have to be specified when defining a variable file,
v5.1 will return a file status of '04' if any record is less than or greater
than the minimum / maximum specified.

so I think:

in the FILE SECTION
in the FD entry for the file,
you define the file as variable
(RECORDING MODE IS V)
but you omit the RECORD CONTAINS CLAUSE,
which was IMO possible with V4,
but which is no more possible with V5,
and with V5 the length of the records read is checked
against the limits specified in the RECORD CONTAINS clause
(two integers, lower and upper limit). If the length is
beyond those limits, a file status '04' is shown.

Thats how I read the description.

Kind regards

Bernd

This is part 1. You also need to attempt to read a file that violates these size limits (probably one with a short record since if the LRECL is higher than the RECORD CONTAINS max you may get an error at open even in the absence of a long record).

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to