%Found will work with a subfile CHAIN. I ‘free-formed’ part of a program I have that does a chain to a subfile. When I entered the code ‘Chain (Rrn) Subfile;’, the compiler did not like it because the parentheses around the Rrn file is saying this is a key list which is not allowed for a subfile. Using ‘Chain Rrn Subfile;’ I was then able to chain to the subfile and use %Found immediately after the chain to execute the appropriate code.
REGISTER or login: