You can link from the *INQ to the *RPY in CL using RCVMSG commands therefore it can also be done using the APIs from RPG or other HLL.I suggest you change your process to look for the *RPY when you find an *INQ message instead of attempting the reverse.
Hmm. Unfortunately, this is very clumsy, since a *RPY can be received much later in time. So if I have an automated "message gatherer" utility and encounter a *RPY, it's effectively an orphan until I go back to retrieve ALL the *INQ msgs trying to match it up!
But thanks for the research into the object structure. It will help avoid going down some wrong paths.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.