SPECIAL FILE - getting EOF indicator
Last Post 07 Dec 2012 01:47 PM by Russ K. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Russ K
New Member
New Member
Posts:43

--
07 Dec 2012 01:47 PM

Hi all,

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. 




You are not authorized to post a reply.

Acceptable Use Policy