IBM Support

COBOL OPM Program Receives Message LBE7207 with File Status 46.

Troubleshooting


Problem

This document explains why a COBOL OPM program receives message LBE7207 with File Status 46.

Resolving The Problem

Reasons for receiving message LBE7207 with a File Status of 46:

The following statement is documented under the READ statement using AT END phrase in the OPM COBOL Reference guide:
https://publibfp.dhe.ibm.com/epubs/pdf/c0918130.pdf

When the AT END condition occurs, execution of the READ statement is unsuccessful. The contents of the associated record area are undefined and the file position indicator is set to indicate that no valid next record has been established.

If a second sequential read is unsuccessful, a file status of 46 occurs and the AT END phrase is not executed."

When an AT END condition occurs, the READ is considered unsuccessful. This causes unpredictable results. The cause is the record contents returned to the program are UNDEFINED.

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m3p000000F98bAAC","label":"Programming ILE Languages-\u003ECOBOL"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

415848661

Document Information

Modified date:
09 December 2024

UID

nas8N1014942