Nj?l Fisketj?n's answer to the original question is what you want:
>This qustion has been answered several times in this new group.
>From the manual
>System API Reference
>OS/400 Program and CL Command APIs
>Document Number SC41-5870-01
>"The List ILE Program Information (QBNLPGMI) API gives information about
>ILE programs, similar to the Display Program (DSPPGM) command. The
>information is placed in a user space specified by you."
>Nj?l Fisketj?n, FIGU DATA AS
You call the QBNLPGMI API, giving the name and library of the program,
and it returns (in a user space) a list of info about the modules
bound into the program, including source name/library/member and
source change dates. It doesn't access the module objects (which may
not exist anymore!), but gets this info directly from the program
The API is documented at:
>On Tue, 9 Mar 1999 21:03:19 -0500, "SJ Lennon"
>>DSPPGM. After the 3rd (?) enter you'll see a screen with a single line in
>>the subfile showing your program. There are options 5 and 8. Prompt 8 and
>>go for *SERVICE. That should show you the source of the module.
>Thank, but i mean in a programmatic way, so that we might automate the
>recompile of an object (we've done a proc do to this for RPG program,
>but we're non able to apply to ILE PGM...)