Thanks to Rudi Van Helvoirt and Robert Robert Berendt
Hello Fernando,
For this I think you will need the SQL service QSYS2.EXIT_PROGRAM_INFO.
The link below will bring you to the documentation page of this view https://www.ibm.com/docs/en/i/7.4?topic=services-exit-program-info-view
Good luck and I hope it did answer your question and helps you in getting what you want.
Greetings Rudi.
------------------------------
#Support#SupportMigration#IBMi