For information about CBL_GET_PROGRAM_INFO, see the corresponding topic and the
PL/I Example under it in the
Library Routines section under
General Reference.
Note: For PL/I programs, by default you will only be able to query information about procedures which have OPTIONS(MAIN) specified.
If you need this API to also work with PL/I subroutines (non-main) then you will have to utilize the PL/I compile option -proginfo
when building those subroutines. This option should only be used if needed as it introduces some performance overhead.