View previous topic :: View next topic
|
Author |
Message |
sivakumar somala
New User
Joined: 26 Sep 2007 Posts: 10 Location: Mumbai
|
|
|
|
Hi All,
I have coded a rexx program to compare the source and load library to see the differences and get a comparision report. For that I have run Super search in batch mode through JCL.
Now I am planning to prepare a report to increase readability and easily understandable. Sample format shown below.
Code: |
Program Promoted When By Whom #of Line Changed
MYPROG1 01/01/2014 USER1 10
MYPROG2 17/01/2014 USER2 20
MYPROG3 31/01/2014 USER3 30
MYPROG4 01/02/2014 USER1 40
|
Request your suggestions and expert commands to acheive this.
Thanks in advance for all your help..!
-Siva |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Quote: |
a rexx program to compare the source and load library to see the differences |
My suggestion is to compare the current code with the past code. You have to archive the previous version of the file.
I do not think you can easily compare two load libraries to find out what changed. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Quote: |
... rexx program to compare the source and load library to see the differences... |
It is not possible to compare source program to load module.
But what I have seen frequently is to have an 'eyecatcher' constant in the source, perhaps something like:
Code: |
"MYPROG1 2014.09.12 V01" |
Some programs have a chain of defect numbers so that you can tell what service is included.
Whenever you make a change to the code, you have to change the eyecatcher. You can compare the source code eyecatcher to the load module eyecatcher or to the eyecatcher found in a dump. In that way, you can be sure that you are not testing a backlevel version of the program. |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
|
|
|
|
SuperCompare can produce an overview report that gives statistics of changes for each member. It is very readable. Below is jcl to run such a report
Code: |
//SUPERC EXEC PGM=ISRSUPC,
// PARM=(OVSUML,LINECMP,'COBOL DPCBCMT NOPRTCC')
//*
//NEWDD DD DSN=new-source-code,
// DISP=SHR
//OLDDD DD DSN=old-source-code
// DISP=SHR
//OUTDD DD SYSOUT=(*)
//SYSIN DD DUMMY |
NOTE: this will ignore COBOL comments and the characters in columns 1-6
You could code a rexx to parse the OUTDD output from this and then reformat for each member. Good luck |
|
Back to top |
|
|
|