[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
