IBM allows you to retrieve the program source for the program they have designed to backup the entire system. To take a look at this CL Program Source, retrieve it using the following command:
RTVCLSRC PGM(QSYS/QMNSAVE) SRCFILE(/)
Once the source is in a source file you can use STRPDM to view it.