You are in: RPG Cafe > See the PCML that is embedded in a program or service program
Short URL: http://ibm.biz/see_pcml_embedded_in_pgm_or_srvpgm
RPG Cafe: See embedded PCML
See the PCML that is embedded in a program or service program
If you compile your ILE RPG or ILE COBOL modules with embedded PCML, you might want to see the PCML or even just see whether there is PCML.
Attached is the source for a command and program that enable you to do that.
Instructions for building the command:
==> CRTBNDRPG MYLIB/DSPPCMLR SRCFILE(MYLIB/SOURCE) ==> CRTCMD MYLIB/DSPPCML PGM(MYLIB/DSPPCMLR) SRCFILE(MYLIB/SOURCE)
Examples of using the command:
- To see the PMCL for program MYPGM
==> DSPPCML MYPGM
- To see the PMCL for all the modules in service program MYSRV
==> DSPPCML MYSRV OBJTYPE(*SRVPGM)
- To see whether there is any PMCL for the MYMOD module in service program MYSRV
==> DSPPCML MYSRV MODULE(MYSRV) OBJTYPE(*SRVPGM) STATSONLY(*YES)
06 May 2020