Highlighted
Absent Member.
Absent Member.
329 views

[archive] USE AFFTER STANDARD ERROR issues

[Migrated content. Thread originally posted on 25 February 2004]

Our company is evaulating replacing file specific declaratives with the general open mode declaratives.

So,

USE AFTER STANDARD ERROR on FILE-XYZ

becomes

USE AFTER STANDARD ERROR ON INPUT

There is one problem, though. The generic declaratives do not catch I/O statements for files that have not yet been opened. Is there a way to do this without making a file-specific declarative?

example:

* following line is commented by mistake
* open input TEST-FILE

* is there a way to catch the following statement with a generic declarative (one that does not explictly name TEST-FILE)?
read TEST-FILE key is TEST-KEY

If this is not possible, the generic declaratives are fairly useless, becuase they only catch a subset of errors that occur in normal operation.

Thanks in advance...
Merlin
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.