Please reread my reply.
Can you honestly say that everywhere you've imbedded RUNQRY you put
QRYFILE and changed them to *LIBL? I really wish that QUERY/400 would
keep *LIBL if you told it *LIBL and not just use *LIBL to find the first
library with a hit and store that library name. Like some stupid software
we use that takes the dns name for your i, finds the IP address and buries
the IP address into their client. Makes it really fun when you do a
switch over to your HA machine, or, your sadistic lan guy changes all your
IP addresses on a periodic basic.
Maybe you were just answering question 2. In that case, your sample does
provide an answer for that.