Register Hereor login if you are already a member
Here is something that might do it.
Alternatively: dsppgm with Detail *MODULE has two issues.It has to be run for each program and it outputs to a print file, not an outfile. So you would have to write a CL program that:
1. Calls dsppgm for each program in you library(s) to outfile
2. Copies the outfile to a flat file.