CloneSet36


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
91220.995paragraph_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1913403
CCCC1.COB
2913121
CCCC8.COB
Clone Instance
1
Line Count
91
Source Line
3403
Source File
CCCC1.COB

      *
      *
       2200-PROCESS-CNTL-BREAK.
           IF  EDIT-ERROR-TABLE
                   IS NOT EQUAL TO SPACES
               PERFORM 8400-PRINT-ERROR-REPORT.
           MOVE 1 TO PAGE-FULL-FLAG.
           MOVE 1 TO NEW-COLLEGE-FLAG.
           IF  NOT SINGLE-COLLEGE-DISTRICT
                   IN DISTRICT-CODE-ENTRY
                   (DISTRICT-CODE-INDEX)
               PERFORM 8200-PRINT-COLLEGE-TOTALS.
           MOVE ZERO TO TABLE-SEARCH-FLAG.
           SET COLLEGE-ELEMENT-ROW-INDEX
             TO                             1.
           SET DISTRICT-ELEMENT-ROW-INDEX
             TO                              1.
           PERFORM 2210-ADD-DISTRICT-ELMNT-TOTALS
                   UNTIL TABLE-SEARCH-COMPLETED.
           MOVE ZERO TO TABLE-SEARCH-FLAG.
           SET TOTAL-COLLEGE-INDEX
             TO                       1.
           SET TOTAL-DISTRICT-INDEX
             TO                        1.
           PERFORM 2220-ADD-DISTRICT-SUM-TOTALS
                   UNTIL TABLE-SEARCH-COMPLETED.
           PERFORM 2230-ADD-DISTRICT-INTGY-TOTALS.
           PERFORM 2240-WRITE-RPT-TTLS-RECDS-FILE.
           MOVE COLLEGE-ID
                   IN COURSE-INVENTORY-RECORD TO
                      HOLD-COLLEGE-ID.
           MOVE ZEROS TO TOTAL-COLLEGE-ENTRIES
                   IN PROGRAM-ACCUMULATORS.
           MOVE ZEROS TO COLLEGE-ELEMENT-TOTALS
                   IN PROGRAM-ACCUMULATORS.
           MOVE ZEROS TO COLLEGE-INTEGRITY-TOTALS
                   IN PROGRAM-ACCUMULATORS.
      *
      *
       2210-ADD-DISTRICT-ELMNT-TOTALS.
           SET COLLEGE-ELEMENT-COLUMN-INDEX
             TO                                1.
           SET DISTRICT-ELEMENT-COLUMN-INDEX
             TO                                 1.
           MOVE ZERO TO ADD-ELEMENT-COLUMNS-FLAG.
           PERFORM 2211-ADD-TO-DISTRICT-MATRIX
                   UNTIL ADD-ELEMENT-COLUMNS-DONE.
           SET ORIGINAL-INDEX-VALUE
             TO       COLLEGE-ELEMENT-ROW-INDEX.
           SEARCH COLLEGE-ELEMENT-TOTALS-ROWS
           AT END
               MOVE 1 TO TABLE-SEARCH-FLAG
           WHEN ORIGINAL-INDEX-VALUE
                   IS NOT EQUAL TO COLLEGE-ELEMENT-ROW-INDEX
               NEXT SENTENCE.
           SET EDIT-ERROR-LITERAL-INDEX
             TO       COLLEGE-ELEMENT-ROW-INDEX.
           SET DISTRICT-ELEMENT-ROW-INDEX
             TO       COLLEGE-ELEMENT-ROW-INDEX.
      *
      *
       2211-ADD-TO-DISTRICT-MATRIX.
           ADD COLLEGE-ELEMENT-TOTAL
                   IN COLLEGE-ELEMENT-TOTALS-COLUMNS
                   (COLLEGE-ELEMENT-ROW-INDEX
                    COLLEGE-ELEMENT-COLUMN-INDEX)
             TO       DISTRICT-ELEMENT-TOTAL
                   IN DISTRICT-ELEMNT-TOTALS-COLUMNS
                   (DISTRICT-ELEMENT-ROW-INDEX
                    DISTRICT-ELEMENT-COLUMN-INDEX).
           SET ORIGINAL-INDEX-VALUE
             TO       COLLEGE-ELEMENT-COLUMN-INDEX.
           SEARCH COLLEGE-ELEMENT-TOTALS-COLUMNS
           AT END
               MOVE 1 TO ADD-ELEMENT-COLUMNS-FLAG
           WHEN ORIGINAL-INDEX-VALUE
                   IS NOT EQUAL TO COLLEGE-ELEMENT-COLUMN-INDEX
               NEXT SENTENCE.
           SET DISTRICT-ELEMENT-COLUMN-INDEX
             TO       COLLEGE-ELEMENT-COLUMN-INDEX.
      *
      *
       2220-ADD-DISTRICT-SUM-TOTALS.
           ADD COLLEGE-TOTAL
                   IN TOTAL-COLLEGE-ENTRY
                   (TOTAL-COLLEGE-INDEX)
             TO       DISTRICT-TOTAL
                   IN TOTAL-DISTRICT-ENTRY
                   (TOTAL-DISTRICT-INDEX).
           SET ORIGINAL-INDEX-VALUE
             TO       TOTAL-COLLEGE-INDEX.
           SEARCH TOTAL-COLLEGE-ENTRY
           AT END
               MOVE 1 TO TABLE-SEARCH-FLAG
           WHEN ORIGINAL-INDEX-VALUE
                   IS NOT EQUAL TO TOTAL-COLLEGE-INDEX
               NEXT SENTENCE.
           SET TOTAL-DISTRICT-INDEX
             TO       TOTAL-COLLEGE-INDEX.


Clone Instance
2
Line Count
91
Source Line
3121
Source File
CCCC8.COB

      *
      *
       2200-PROCESS-CNTL-BREAK.
           IF  EDIT-ERROR-TABLE
                   IS NOT EQUAL TO SPACES
               PERFORM 8400-PRINT-ERROR-REPORT.
           MOVE 4 TO PAGE-FULL-FLAG.
           MOVE 1 TO NEW-COLLEGE-FLAG.
           IF  NOT SINGLE-COLLEGE-DISTRICT
                   IN DISTRICT-CODE-ENTRY
                   (DISTRICT-CODE-INDEX)
               PERFORM 8200-PRINT-COLLEGE-TOTALS.
           MOVE ZERO TO TABLE-SEARCH-FLAG.
           SET COLLEGE-ELEMENT-ROW-INDEX
             TO                             1.
           SET DISTRICT-ELEMENT-ROW-INDEX
             TO                              1.
           PERFORM 2210-ADD-DISTRICT-ELMNT-TOTALS
                   UNTIL TABLE-SEARCH-COMPLETED.
           MOVE ZERO TO TABLE-SEARCH-FLAG.
           SET TOTAL-COLLEGE-INDEX
             TO                       1.
           SET TOTAL-DISTRICT-INDEX
             TO                        1.
           PERFORM 2220-ADD-DISTRICT-SUM-TOTALS
                   UNTIL TABLE-SEARCH-COMPLETED.
           PERFORM 2230-ADD-DISTRICT-INTGY-TOTALS.
           PERFORM 2240-WRITE-RPT-TTLS-RECDS-FILE.
           MOVE COLLEGE-ID
                   IN STUDENT-DSPS-DATA-RECORD TO
                      HOLD-COLLEGE-ID.
           MOVE ZEROS TO TOTAL-COLLEGE-ENTRIES
                   IN PROGRAM-ACCUMULATORS.
           MOVE ZEROS TO COLLEGE-ELEMENT-TOTALS
                   IN PROGRAM-ACCUMULATORS.
           MOVE ZEROS TO COLLEGE-INTEGRITY-TOTALS
                   IN PROGRAM-ACCUMULATORS.
      *
      *
       2210-ADD-DISTRICT-ELMNT-TOTALS.
           SET COLLEGE-ELEMENT-COLUMN-INDEX
             TO                                1.
           SET DISTRICT-ELEMENT-COLUMN-INDEX
             TO                                 1.
           MOVE ZERO TO ADD-ELEMENT-COLUMNS-FLAG.
           PERFORM 2211-ADD-TO-DISTRICT-MATRIX
                   UNTIL ADD-ELEMENT-COLUMNS-DONE.
           SET ORIGINAL-INDEX-VALUE
             TO       COLLEGE-ELEMENT-ROW-INDEX.
           SEARCH COLLEGE-ELEMENT-TOTALS-ROWS
           AT END
               MOVE 1 TO TABLE-SEARCH-FLAG
           WHEN ORIGINAL-INDEX-VALUE
                   IS NOT EQUAL TO COLLEGE-ELEMENT-ROW-INDEX
               NEXT SENTENCE.
           SET EDIT-ERROR-LITERAL-INDEX
             TO       COLLEGE-ELEMENT-ROW-INDEX.
           SET DISTRICT-ELEMENT-ROW-INDEX
             TO       COLLEGE-ELEMENT-ROW-INDEX.
      *
      *
       2211-ADD-TO-DISTRICT-MATRIX.
           ADD COLLEGE-ELEMENT-TOTAL
                   IN COLLEGE-ELEMENT-TOTALS-COLUMNS
                   (COLLEGE-ELEMENT-ROW-INDEX
                    COLLEGE-ELEMENT-COLUMN-INDEX)
             TO       DISTRICT-ELEMENT-TOTAL
                   IN DISTRICT-ELEMNT-TOTALS-COLUMNS
                   (DISTRICT-ELEMENT-ROW-INDEX
                    DISTRICT-ELEMENT-COLUMN-INDEX).
           SET ORIGINAL-INDEX-VALUE
             TO       COLLEGE-ELEMENT-COLUMN-INDEX.
           SEARCH COLLEGE-ELEMENT-TOTALS-COLUMNS
           AT END
               MOVE 1 TO ADD-ELEMENT-COLUMNS-FLAG
           WHEN ORIGINAL-INDEX-VALUE
                   IS NOT EQUAL TO COLLEGE-ELEMENT-COLUMN-INDEX
               NEXT SENTENCE.
           SET DISTRICT-ELEMENT-COLUMN-INDEX
             TO       COLLEGE-ELEMENT-COLUMN-INDEX.
      *
      *
       2220-ADD-DISTRICT-SUM-TOTALS.
           ADD COLLEGE-TOTAL
                   IN TOTAL-COLLEGE-ENTRY
                   (TOTAL-COLLEGE-INDEX)
             TO       DISTRICT-TOTAL
                   IN TOTAL-DISTRICT-ENTRY
                   (TOTAL-DISTRICT-INDEX).
           SET ORIGINAL-INDEX-VALUE
             TO       TOTAL-COLLEGE-INDEX.
           SEARCH TOTAL-COLLEGE-ENTRY
           AT END
               MOVE 1 TO TABLE-SEARCH-FLAG
           WHEN ORIGINAL-INDEX-VALUE
                   IS NOT EQUAL TO TOTAL-COLLEGE-INDEX
               NEXT SENTENCE.
           SET TOTAL-DISTRICT-INDEX
             TO       TOTAL-COLLEGE-INDEX.


Clone AbstractionParameter Count: 2Parameter Bindings

      *
      *
       2200-PROCESS-CNTL-BREAK.
           IF EDIT-ERROR-TABLE IS NOT EQUAL TO SPACES
             PERFORM 8400-PRINT-ERROR-REPORT.
           MOVE [[#22a551a0]]TO PAGE-FULL-FLAG.
           MOVE 1 TO NEW-COLLEGE-FLAG.
           IF NOT SINGLE-COLLEGE-DISTRICT
                    IN DISTRICT-CODE-ENTRY (DISTRICT-CODE-INDEX)
             PERFORM 8200-PRINT-COLLEGE-TOTALS.
           MOVE ZERO TO TABLE-SEARCH-FLAG.
           SET COLLEGE-ELEMENT-ROW-INDEX
             TO 1.
           SET DISTRICT-ELEMENT-ROW-INDEX
             TO 1.
           PERFORM 2210-ADD-DISTRICT-ELMNT-TOTALS
             UNTIL TABLE-SEARCH-COMPLETED.
           MOVE ZERO TO TABLE-SEARCH-FLAG.
           SET TOTAL-COLLEGE-INDEX
             TO 1.
           SET TOTAL-DISTRICT-INDEX
             TO 1.
           PERFORM 2220-ADD-DISTRICT-SUM-TOTALS
             UNTIL TABLE-SEARCH-COMPLETED.
           PERFORM 2230-ADD-DISTRICT-INTGY-TOTALS.
           PERFORM 2240-WRITE-RPT-TTLS-RECDS-FILE.
           MOVE COLLEGE-ID
                  IN [[#22a550e0]]TO HOLD-COLLEGE-ID.
           MOVE ZEROS TO TOTAL-COLLEGE-ENTRIES
                           IN PROGRAM-ACCUMULATORS.
           MOVE ZEROS TO COLLEGE-ELEMENT-TOTALS
                           IN PROGRAM-ACCUMULATORS.
           MOVE ZEROS TO COLLEGE-INTEGRITY-TOTALS
                           IN PROGRAM-ACCUMULATORS.
      *
      *
       2210-ADD-DISTRICT-ELMNT-TOTALS.
           SET COLLEGE-ELEMENT-COLUMN-INDEX
             TO 1.
           SET DISTRICT-ELEMENT-COLUMN-INDEX
             TO 1.
           MOVE ZERO TO ADD-ELEMENT-COLUMNS-FLAG.
           PERFORM 2211-ADD-TO-DISTRICT-MATRIX
             UNTIL ADD-ELEMENT-COLUMNS-DONE.
           SET ORIGINAL-INDEX-VALUE
             TO COLLEGE-ELEMENT-ROW-INDEX.
           SEARCH COLLEGE-ELEMENT-TOTALS-ROWS
             AT END
               MOVE 1 TO TABLE-SEARCH-FLAG
             WHEN ORIGINAL-INDEX-VALUE IS NOT EQUAL TO
                  COLLEGE-ELEMENT-ROW-INDEX
               NEXT SENTENCE.
           SET EDIT-ERROR-LITERAL-INDEX
             TO COLLEGE-ELEMENT-ROW-INDEX.
           SET DISTRICT-ELEMENT-ROW-INDEX
             TO COLLEGE-ELEMENT-ROW-INDEX.
      *
      *
       2211-ADD-TO-DISTRICT-MATRIX.
           ADD COLLEGE-ELEMENT-TOTAL
                 IN COLLEGE-ELEMENT-TOTALS-COLUMNS (
                                               COLLEGE-ELEMENT-ROW-INDEX
                                            COLLEGE-ELEMENT-COLUMN-INDEX
                                                   )
             TO DISTRICT-ELEMENT-TOTAL
                  IN DISTRICT-ELEMNT-TOTALS-COLUMNS (
                                              DISTRICT-ELEMENT-ROW-INDEX
                                           DISTRICT-ELEMENT-COLUMN-INDEX
                                                    ).
           SET ORIGINAL-INDEX-VALUE
             TO COLLEGE-ELEMENT-COLUMN-INDEX.
           SEARCH COLLEGE-ELEMENT-TOTALS-COLUMNS
             AT END
               MOVE 1 TO ADD-ELEMENT-COLUMNS-FLAG
             WHEN ORIGINAL-INDEX-VALUE IS NOT EQUAL TO
                  COLLEGE-ELEMENT-COLUMN-INDEX
               NEXT SENTENCE.
           SET DISTRICT-ELEMENT-COLUMN-INDEX
             TO COLLEGE-ELEMENT-COLUMN-INDEX.
      *
      *
       2220-ADD-DISTRICT-SUM-TOTALS.
           ADD COLLEGE-TOTAL
                 IN TOTAL-COLLEGE-ENTRY (TOTAL-COLLEGE-INDEX)
             TO DISTRICT-TOTAL
                  IN TOTAL-DISTRICT-ENTRY (TOTAL-DISTRICT-INDEX).
           SET ORIGINAL-INDEX-VALUE
             TO TOTAL-COLLEGE-INDEX.
           SEARCH TOTAL-COLLEGE-ENTRY
             AT END
               MOVE 1 TO TABLE-SEARCH-FLAG
             WHEN ORIGINAL-INDEX-VALUE IS NOT EQUAL TO
                  TOTAL-COLLEGE-INDEX
               NEXT SENTENCE.
           SET TOTAL-DISTRICT-INDEX
             TO TOTAL-COLLEGE-INDEX.
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22a551a0]]
       4 
12[[#22a551a0]]
       1 
21[[#22a550e0]]
       STUDENT-DSPS-DATA-RECORD 
22[[#22a550e0]]
       COURSE-INVENTORY-RECORD