There is a better alternative to the CMPPFM command to analyze the changes that have been made to a source code....
The CMPPFM command just gives the list of lines inserted or deleted from the source code. We never know the exact location or subroutine where the source has changed. We generally go back to source member to do the same.
MRGSRC command gives you that option. Suppose FILEA is the base file in library LIB1. FILEB is modified version of FILEA in library LIB2. The following command is used to view the comparisons.
MRGSRC TGTFILE (LIB2/QPGLESRC) TGTMBR (FILEB) MAINTFILE (LIB1/QRPGLESRC) MAINTMBR (FILEA) ROOTFILE (LIB2/QRPGLESRC) ROOTMBR (FILEB)
The Merge window appears with source code of FILEB at the top half and the source code of FILEA at the bottom half. Modified and original source code locations are automatically mapped. You have the option of moving up or down the source to know the exact location like the subroutine name etc., When F16 is pressed the next change and the location is displayed.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.