MDCMPPFM - MD Member Comparison Report
MDCMS is delivered with a command-based API that provides for the reporting of code differences between 2 source members.
This command can be used for any member comparisons, but is particularly useful for automatic reporting of differences for any source deployed by an RFP. To configure MDCMS to do this, do the following:
Create a command entry either for specific objects or for specific MDCMS attributes with the following properties:
Type = Q=Installation Archive/Cleanup
Run for Modifications = Y
Run for Recompiles, Deletes and Updates = N
Keep MD Libs in Libl = Y
Command
MDCMPPFM NEWFILE(##SRCLIB##/##SRCFIL##) NEWMBR(##SRCNAM##) OLDFILE(##PRISLB##/##PRISFL##) OLDMBR(##PRISNM##) IFSF(CodeCompare_##SRCNAM##_##ATTRIB##)
TITLE('MDCMS Code Comparison for Level ##APPLIC##/##PROLVL## RFP ##RFPNBR##') IFSD('/Reports/CodeCompare/RFP##RFPNBR##')
MDCMPPFM Parameter Table
| Name | Type | Length | Description |
|---|---|---|---|
| Name | Type | Length | Description |
| NEWFILE | QUAL | 10-21 | The qualified name of the source file containing the new version of the source. Use *LIBL for library when the file should be found in the library list. |
| NEWMBR | CHAR | 10 | The name of the new version of the source member |
| OLDFILE | QUAL | 10-21 | The qualified name of the source file containing the old version of the source. Use *LIBL for library when the file should be found in the library list. |
| OLDMBR | CHAR | 10 | The name of the old version of the source member |
| IFSF | CHAR | 60 | The name of the IFS file to contain the result |
| APPTS | CHAR | 4 | Append Timestamp to filename *YES - the date and time of the comparison will be appended to the file name *NO - the file name won't contain the date/time |
| TITLE | CHAR | 100 | The title to include in the PDF report, if the PDF is used |
| IFSD | CHAR | 80 | The folder path of the IFS file to contain the result |
| RPTFMT | CHAR | 4 | PDF - a PDF will be created for the result TXT - a plain text file will be created for the result |