z/OS ISPF User's Guide Vol II
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of comparison listings

z/OS ISPF User's Guide Vol II
SC19-3628-00

The following represent some of the output types available from SuperC.
Figure 1. Example of comparison listing with dates being compared
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  12.31   PAGE    1

NEW:  D1       A        A                                    OLD:  D2       A        A

                      LISTING OUTPUT SECTION (LINE COMPARE)

ID      SOURCE LINES                                                                 TYPE  LEN N-LN# O-LN#
    ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
                                                                                     MAT=    1
I - 970522     øêL                                                                   RPL=    1 00002 00002
INFO  Date cols 11:15 packed 20970522  comp=(2097 05 22)
D - 970522    øêL
INFO  Date cols 11:14 packed 970522    comp=(1997 05 22)
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  12.31   PAGE    1
NEW:  D1       A        A                                    OLD:  D2       A        A

                      LINE COMPARE SUMMARY AND STATISTICS

      1 NUMBER OF LINE MATCHES               1  TOTAL CHANGES (PAIRED+NONPAIRED CHNG)
      0 REFORMATTED LINES                    1  PAIRED CHANGES (REFM+PAIRED INS/DEL)
      1 NEW FILE LINE INSERTIONS             0  NON-PAIRED INSERTS
      1 OLD FILE LINE DELETIONS              0  NON-PAIRED DELETES
      2 NEW FILE LINES PROCESSED
      2 OLD FILE LINES PROCESSED

LISTING-TYPE = DELTA  COMPARE-COLUMNS =    1:72     LONGEST-LINE = 80
PROCESS OPTIONS USED: SEQ(DEFAULT)
THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:
   Y2PAST 1987
   NY2P 11:15 YYYYMMDD
   OY2P 11:14 YYMMDD
   NFOCUS COLS 1:20
   OFOCUS COLS 1:20
In Figure 1, the two date definition process statements have each caused an information ("INFO") line to be generated. The information line shows:
  • The position of the defined date in the record.
  • The contents of the defined date field.
  • The date as it was actually compared. In the second information line, you can see the defined date has a 2-digit year portion ("97") but has actually been compared using a 4-digit year portion ("1997").
For further details, see Date definitions.
Note: Occasionally, you may see some "unusual" characters on the inserted (I) and deleted (D) lines. These characters represent data that is in a non-character (and therefore not directly printable) format in the input record. Ignore them.
Figure 2. Example of comparison listing with column headings (Using COLHEAD)
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  14.38   PAGE    1

NEW:  D1       A        A                                    OLD:  D2       A        A

                      LISTING OUTPUT SECTION (LINE COMPARE)

ID      SOURCE LINES                                                                 TYPE  LEN N-LN# O-LN#
    Account  Birth       Surname
    Number   Date                                                                    MAT=    1
I - 111222   19970101    Jones                                                       RPL=    1 00002 00002
D - 111222   970102      Jones
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  14.38   PAGE    1
NEW:  D1       A        A                                    OLD:  D2       A        A

                      LINE COMPARE SUMMARY AND STATISTICS

      1 NUMBER OF LINE MATCHES               1  TOTAL CHANGES (PAIRED+NONPAIRED CHNG)
      0 REFORMATTED LINES                    1  PAIRED CHANGES (REFM+PAIRED INS/DEL)
      1 NEW FILE LINE INSERTIONS             0  NON-PAIRED INSERTS
      1 OLD FILE LINE DELETIONS              0  NON-PAIRED DELETES
      2 NEW FILE LINES PROCESSED
      2 OLD FILE LINES PROCESSED

LISTING-TYPE = DELTA  COMPARE-COLUMNS =    1:72     LONGEST-LINE = 80
PROCESS OPTIONS USED: SEQ(DEFAULT)
THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:
   COLHEAD 'Account','Number',1:8,N 1:6 C,O 1:6 C
   COLHEAD 'Birth','Date',10:20,N 7:11 P,O 7:10 P
   COLHEAD 'Surname',,22:61,N 12:51 C,O 11:50 C
In Figure 2, COLHEAD process statements have been used to generate column headings ("Account Number", "Birth Date", and "Surname") for the corresponding input data. For further details, see Define column headings.
Figure 3. Example of a NARROW side-by-side listing
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  15.10
NEW:  JLEVERIN TEST2    A                                  OLD:  JLEVERIN TEST1

                      LISTING OUTPUT SECTION (LINE COMPARE)

ID          NEW FILE LINES          ID          OLD FILE LINES      N-LN# O-LN#
   ----+----1----+----2|…|5----+      ----+----1----+----2|…|5---
RN-This line is reforma|…|" file | RO-This line is reforma|…|"new 00001 00001
   This line is the sam|…|       |    This line is the sam|…|     00002 00002
I -This line differs fr|…|.      | D -This line differs fr|…|.    00003 00003
   This line is the sam|…|       |    This line is the sam|…|     00004 00004
I -This line is in the |…|ld".   |                        |…|     00005

1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  15.10
NEW:  JLEVERIN TEST2    A                                 OLD:  JLEVERIN TEST1

                   LINE COMPARE SUMMARY AND STATISTICS

   2 NUMBER OF LINE MATCHES            3  TOTAL CHANGES (PAIRED+NONPAIRED CHNG)
   1 REFORMATTED LINES                 2  PAIRED CHANGES (REFM+PAIRED INS/DEL)
   2 NEW FILE LINE INSERTIONS          1  NON-PAIRED INSERTS
   1 OLD FILE LINE DELETIONS           0  NON-PAIRED DELETES
   5 NEW FILE LINES PROCESSED
   4 OLD FILE LINES PROCESSED

LISTING-TYPE = CHNG   COMPARE-COLUMNS =    1:72     LONGEST-LINE = 80
PROCESS OPTIONS USED: SEQ(DEFAULT) NARROW NOPRTCC

**ASMFSUPC INFORM04**, LISTING LINES MAY BE TRUNCATED DUE TO LIMITING OUTPUT LINE
WIDTH.
In Figure 3, the new and old files are shown side-by-side. The NARROW listing type allows SuperC to output 55 columns from each file. Notice how the inserts and deletes are horizontally aligned with each other.
Figure 4. Example of a NARROW side-by-side listing (with DLMDUP)
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
NEW:  JLEVERIN TEST2    A                                 OLD:  JLEVERIN TEST1

                      LISTING OUTPUT SECTION (LINE COMPARE)

ID          NEW FILE LINES          ID          OLD FILE LINES      N-LN# O-LN#
   ----+----1----+----2|…|5----+      ----+----1----+----2|…|5---
RN-This line is reforma|…|" file | RO-This line is reforma|…|"new 00001 00001
   This line is the sam|…|       |                        |…|     00002 00002
I -This line differs fr|…|.      | D -This line differs fr|…|.    00003 00003
   This line is the sam|…|       |                        |…|     00004 00004
I -This line is in the |…|ld".   |                        |…|     00005

1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
NEW:  JLEVERIN TEST2    A                                 OLD:  JLEVERIN TEST1

                      LINE COMPARE SUMMARY AND STATISTICS

   2 NUMBER OF LINE MATCHES             3  TOTAL CHANGES (PAIRED+NONPAIRED CHNG)
   1 REFORMATTED LINES                  2  PAIRED CHANGES (REFM+PAIRED INS/DEL)
   2 NEW FILE LINE INSERTIONS           1  NON-PAIRED INSERTS
   1 OLD FILE LINE DELETIONS            0  NON-PAIRED DELETES
   5 NEW FILE LINES PROCESSED
   4 OLD FILE LINES PROCESSED

LISTING-TYPE = CHNG   COMPARE-COLUMNS =    1:72     LONGEST-LINE = 80
PROCESS OPTIONS USED: SEQ(DEFAULT) NARROW DLMDUP NOPRTCC

**ASMFSUPC INFORM04**, LISTING LINES MAY BE TRUNCATED DUE TO LIMITING OUTPUT LINE
WIDTH.
Figure 4, is like the previous example (Figure 3) except that the process option DLMDUP has been used to suppress the matched lines from the old file section. This simplifies the combined listing output, allowing the changes to stand out more clearly.
Figure 5. Example of a WIDE side-by-side listing
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
NEW:  JLEVERIN TEST2    A                                 OLD:  JLEVERIN TEST1

                      LISTING OUTPUT SECTION (LINE COMPARE)

ID          N|…|         ID          O|…|       TYPE LEN TYPE LEN N-LN# O-LN#
   ----+----1|…|+----8      ----+----1|…|+----8
RN-This line |…|000100 | RO-This line |…|000100 RFM=   1          00001 00001
   This line |…|000200 |              |…|       MAT=   1          00002 00002
I -This line |…|000300 | D -This line |…|000300 INS=   1 DEL=   1 00003 00003
   This line |…|000400 |              |…|       MAT=   1          00004 00004
I -This line |…|000500 |              |…|       INS=   1          00005

1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
NEW:  JLEVERIN TEST2    A                                 OLD:  JLEVERIN TEST1

                      LINE COMPARE SUMMARY AND STATISTICS

   2 NUMBER OF LINE MATCHES           3  TOTAL CHANGES (PAIRED+NONPAIRED CHNG)
   1 REFORMATTED LINES                2  PAIRED CHANGES (REFM+PAIRED INS/DEL)
   2 NEW FILE LINE INSERTIONS         1  NON-PAIRED INSERTS
   1 OLD FILE LINE DELETIONS          0  NON-PAIRED DELETES
   5 NEW FILE LINES PROCESSED
   4 OLD FILE LINES PROCESSED

LISTING-TYPE = CHNG   COMPARE-COLUMNS =    1:72     LONGEST-LINE = 80
PROCESS OPTIONS USED: SEQ(DEFAULT) WIDE DLMDUP NOPRTCC

In Figure 5, the new and old files are shown side-by-side in a WIDE listing. SuperC lists 80 columns from each file. Notice how the inserts and deletes are horizontally aligned with each other.

Note: The output file has a LRECL of 202/203 and may require special processing and printer capability to obtain a hard copy. Refer to the previous NARROW option examples if the large LRECL requirement cannot be satisfied and a side-by-side listing is still required.
Figure 6. Example of a FILE comparison of a file group
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0  (07/11/2008)  07/11/2008  16.46
 NEW:  PACKAGE   ANNOUNCE A1 + SELECTF FILE LIST               OLD:  PACKAGE

                       MEMBER SUMMARY LISTING (FILE COMPARE)

 DIFF SAME               FILE NAMES                  N-BYTES O-BYTES N-LINES

  **       PACKAGE   ANNOUNCE A1:PACKAGE ANNOUNCE E1     11210   51148     241
  **       PACKAGE   EXEC     A5:PACKAGE EXEC     E5    151749  151646    4311
       **  PACKAGE   HELP     A5:PACKAGE HELP     E5     70683   70683    1631
  **       PACKAGE   HELPCMS  A5:PACKAGE HELPCMS  E1        58      65       4
  **       PACKAGE   MENU     A5:PACKAGE MENU     E5     16803   16803     426
  **       PACKAGE   MODULE   A1:PACKAGE MODULE   E1    127604  126076       4
       **  PACKAGE   PACKAGE  A5:PACKAGE PACKAGE  E5      2408    2408      42
                     ----------------------          ------- ------- -------
                         GROUP TOTALS                 380515  418829    6659

Column 78 -------------------------------------->O-LINES N-HASH-SUM O-HASH-SUM

Column 80 ----------------------------------------->1147  C18E675F   F5CE6031
   (Continuation of previous data lines)            4310  2D2DF797   E0F1D820
                                                    1631  8A05CE27   8A05CE27
                                                       6  B1879676   F011E226
                                                     426  BAC0D5A9   BABFD5A9
                                                       4  4DF43D5A   3E820FA9
                                                      42  B29FA936   B29FA936
                                                 -------
                                                    7566


     7   TOTAL FILES PROCESSED AS A GROUP
     5   TOTAL FILES PROCESSED HAD CHANGES
     2   TOTAL FILES PROCESSED HAD NO CHANGES
     0   TOTAL NEW FILES NOT PAIRED
     0   TOTAL OLD FILES NOT PAIRED


 THE FOLLOWING PROCESS STATEMENT(S) WERE PROCESSED:
    SELECTF PACKAGE   ANNOUNCE A1   PACKAGE   ANNOUNCE E1
    SELECTF PACKAGE   EXEC     A5   PACKAGE   EXEC     E5
    SELECTF PACKAGE   HELP     A5   PACKAGE   HELP     E5
    SELECTF PACKAGE   HELPCMS  A5   PACKAGE   HELPCMS  E1
    SELECTF PACKAGE   MENU     A5   PACKAGE   MENU     E5
    SELECTF PACKAGE   MODULE   A1   PACKAGE   MODULE   E1
    SELECTF PACKAGE   PACKAGE  A5   PACKAGE   PACKAGE  E5
Figure 6 shows a collection of files and statistics for the specified SELECTF designated file group. Some files are the same and some files differ.
Figure 7. Example of a FILE comparison of a file group (with LOCS)
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
 NEW:  PACKAGE   ANNOUNCE A1 + SELECTF FILE LIST               OLD:  PACKAGE

                       MEMBER SUMMARY LISTING (FILE COMPARE)

 DIFF SAME               FILE NAMES                  N-BYTES O-BYTES N-LINES

  **       PACKAGE   ANNOUNCE A1:PACKAGE ANNOUNCE E1     11210   51148     241
  **       PACKAGE   EXEC     A5:PACKAGE EXEC     E5    151749  151646    4311
  **       PACKAGE   HELPCMS  A5:PACKAGE HELPCMS  E1        58      65       4
  **       PACKAGE   MENU     A5:PACKAGE MENU     E5     16803   16803     426
  **       PACKAGE   MODULE   A1:PACKAGE MODULE   E1    127604  126076       4
                     ----------------------          ------- ------- -------
                         GROUP TOTALS                 380515  418829    6659



Column 78 -------------------------------------->O-LINES N-HASH-SUM O-HASH-SUM

Column 80 ----------------------------------------->1147  C18E675F   F5CE6031
   (Continuation of previous data lines)            4310  2D2DF797   E0F1D820
                                                       6  B1879676   F011E226
                                                     426  BAC0D5A9   BABFD5A9
                                                       4  4DF43D5A   3E820FA9
                                                 -------
                                                    7566


     7   TOTAL FILES PROCESSED AS A GROUP
     5   TOTAL FILES PROCESSED HAD CHANGES
     2   TOTAL FILES PROCESSED HAD NO CHANGES
     0   TOTAL NEW FILES NOT PAIRED
     0   TOTAL OLD FILES NOT PAIRED

 PROCESS OPTIONS USED: LOCS

 THE FOLLOWING PROCESS STATEMENT(S) WERE PROCESSED:
    SELECTF PACKAGE   ANNOUNCE A1   PACKAGE   ANNOUNCE E1
    SELECTF PACKAGE   EXEC     A5   PACKAGE   EXEC     E5
    SELECTF PACKAGE   HELP     A5   PACKAGE   HELP     E5
    SELECTF PACKAGE   HELPCMS  A5   PACKAGE   HELPCMS  E1
    SELECTF PACKAGE   MENU     A5   PACKAGE   MENU     E5
    SELECTF PACKAGE   MODULE   A1   PACKAGE   MODULE   E1
    SELECTF PACKAGE   PACKAGE  A5   PACKAGE   PACKAGE  E5
Figure 7 is like the previous example (Figure 6) except that the LOCS process option has been used to limit the output to files from the file group which were found to be different. This option can greatly reduce the volume of output when the total number of files is secondary to the change activity in the group.
Figure 8. Example of a WORD comparison
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
NEW:  JLEVERIN TEST2    A                   OLD:  JLEVERIN TEST1    A

                      LISTING OUTPUT SECTION (WORD COMPARE)

ID            SOURCE LINES (COMPARED COLUMNS)                      N-LN# O-LN#

   This line is reformatted; the spacing in the "new" file differs 00001 00001
   This line is the same in both files.                            00002 00002
MC-This line differs from the text in the       file.              00003 00003
IC-                                       "old"                    00003 00003
DC-                                       "new"                    00003 00003
   This line is the same in both files.                            00004 00004
I -This line is in the "new" file, but not in the "old".           00005 00004
1  ASMFSUPC   -     MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
NEW:  JLEVERIN TEST2    A                   OLD:  JLEVERIN TEST1    A


                  WORD COMPARE SUMMARY AND STATISTICS

 40 NUMBER OF WORD MATCHES      14  TOTAL CHANGES (PAIRED+NONPAIRED CHNG)
 14 NEW FILE WORD INSERTIONS     2  NEW FILE LINES CHANGED/INSERTED
  1 OLD FILE WORD DELETIONS      1  OLD FILE LINES CHANGED/DELETED
 54 NEW FILE WORDS PROCESSED     5  NEW FILE LINES PROCESSED
 41 OLD FILE WORDS PROCESSED     4  OLD FILE LINES PROCESSED

LISTING-TYPE = LONG   COMPARE-COLUMNS =    1:80     LONGEST-LINE = 80
PROCESS OPTIONS USED: NONE
Figure 8 is an output listing from a comparison using the WORD compare type and shows how the output lines differ when the comparison is made at the WORD level. The deleted words are normally listed under the replacement (inserted) words. Separate (both inserted and deleted) lines are listed when completely changed lines are detected.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014