in AS/400 you can use WRKOBJ followed by program name. If you have forgotten the program name type WRKOBJ and first two or three letters of the Program Name followed by *. Press F4 and then enter *ALL in library parameter.
You would create two files
– one listing the source — DSPFD mySrcLib/QRPGLESRC *MBRLIST *outfile MyLib/Mbrlist
– the other listing the objects – DSPOBJD myPgmlib/*All *pgm *outfile MyLib/PgmList
add to this list the DSPOBJD myPgmlib/*All *SVCPGM *outfile MyLib/PgmList
Then you can create two SQL’s or queries to join the two lists on Objname – MbrName
– one shows items in mrblist not matched with pgmList
– the other shows items in pgmList not matched with mbrlist
But if you are using ILE and modules you may find a number of sources that are modules in programs — not actual programs.