Justin,
Why would the RPG compiler be looking for this? Did you or someone add that *SRVPGM to some "binding directory" that is commonly used by at least those RPGLE programs that are now showing this error?
That QTOQRAPI *SRVPGM contains these procedures:
rapi_session
rapi_sender
rapi_reserve
rapi_release
rapi_getfd
rapi_dispatch
rapi_version
rapi_fmt_flowspec
rapi_fmt_tspec
rapi_fmt_adspec
rapi_fmt_filtspec
You could use FNDSTRPDM to search your QRPGLESRC source members for any occurrances of any of those procedure names, to find out who may be trying to use this *SRVPGM.
As Charles stated, the *PUBLIC authority for that *SRVPGM as shipped by IBM is set to *EXCLUDE. It is also possible that someone changed that to e.g. *PUBLIC *USE on IBM i 7.4, and when you upgraded, you "lost" that change.
Rather than just changing the *PUBLIC authority for that *SRVPGM, I would try to figure out why it is being accessed (for what purpose).
Hope that helps,
Mark S. Waterbury
On Tuesday, April 28, 2026 at 02:44:09 PM EDT, Justin Taylor <jtaylor.0ab@xxxxxxxxx> wrote:
After upgrading IBM i from 7.4 to 7.6, I'm getting about 15-20 of these
compiler messages when compiling RPG. They only appear on a successful
compile. They always point to something in QSYS. Is there a way to get rid
of them?
Sample:
CPF5D04 Not authorized to service program QTOQRAPI in library QSYS.
I see these messages on RDi 9.9, 9.8, and 9.6.
Thanks
As an Amazon Associate we earn from qualifying purchases.