I'm using a SPECIAL file in a program (PGMA). During a READ operation on the SPECIAL file, the calling pgm is receiving an EOF. But when I step through in DEBUG, the status indicator in the special pgm (PGMB) shows a zero being returned. I also see the EOF indicator on in the INFDS for the SPECIAL file in PGMA as well.
My SPECIAL pgm (PGMB) chains to another file. I found that if I do a " if not %found(otherfile) " the caller gets an EOF. If I take it out and assume a hit, no EOF in the caller. Is it me or is RPG cranky? (I know I'm getting cranky trying to figure this out).
I'm using this in an RPGIV pgm on a V7R1 system.