DSPPGM will give you information about the program, including the module names and the libraries of the modules. Source is stored in a source file which is often named qrpglesrc. Phil
I might recommend wrkmbrpdm. You can view or edit if you so desire.
ILE RPG programs aren’t created from source; they’re created from modules that are already compiled. Tom
You can also try the command DSPOBJD lib/PGM.Then take either option 5 or 8 , I can’t remember, but it will tell where the object was compiled from.
DSPOBJD would work for older OPM RPG programs, but not for ILE RPG. — Tom