AcuRuntime 10.0: FILE_STATUS_CODES DG returns 92 instead of 10

0 Likes

Problem:

COBOL source code compiled under ACUCOBOL-GT 9.2 (or previous) allows START and READ NEXT of an empty file.
The returned File Status was 10: End of file. (read next) 

However when the same code is compiled under new version 10.0.0, the same logic is forced into the DECLARATIVES section with File Status 92.

Resolution:


This is a behavior change introduced in release 10.0.0 to fix an issue that was laying in the runtime for a long time.

Here's the references to the change and a suggestion to set in the configuration file in case the old behavior is still requested after the update of the runtime.


SUBJECT: DG ICOBOL file status change for READ when undefined record
Change Number: ECN-4330
Type of Change: Correction
Incidents: 2806405
RPI Number: 1097532

Date: 2014-12-15
Product: ACUCOBOL-GT
Module: runtime
New Version: 10.0.0

DESCRIPTION of problem or enhancement:

After a failed START, leaving the file position undefined, a READ operation returned DG file status 10 rather than the documented 92.
This change corrects this error.

If the previous behavior is desired, set the configuration:

FILE-CONDITION 27=10

Claudio Contardi
Product Support Engineer, Senior
Micro Focus

Tags:

Comment List
Anonymous
  • FILE-CONDITION 27=10 needs to be positioned after FILE-STATUS-CODES  DG in order for it to work i.e.

    FILE-STATUS-CODES  DG

    FILE-CONDITION 27=10

    If they are the opposite way around then it will not work.

    Martin Turner

    Product Support Engineer

    Micro Focus

Related Discussions
Recommended