How can a program be prevented from failing over when READC is performed on an empty subfile ?

Check indicator placed in position LO, which will be seton if EOF if reached.

Or use %ERROR if coding in RPGLE

Or use a MONITOR nested group around the READC.

Lots of options   :)

Tag Cloud: