identification division.
Program-Id. COBOLS. DATE-COMPILED. 09/01/11.
author. E-JCL Software, Inc. * * This
sample COBOL program contains random COBOL statements and * is intended to demonstrate
some of the run-time profiling * capabilities of CobolPro for z/OS.
* environment division. configuration section .
source-computer. test-computer-name.
object-computer. test-computer-name. special-names. data division.
working-storage section. 01 PROG-COBOLT
PIC X(8) VALUE '$$COBOLT'. 01 COUNT-X
PIC S9(9) COMP VALUE 5. 01 COUNT-Y
PIC S9(9) COMP VALUE 4. 01 COUNT-Z
PIC S9(9) COMP VALUE 3. 01 II
PIC S9(9) COMP VALUE 0. 01 JJ
PIC S9(9) COMP VALUE 0. * procedure division. * Display 'Executing $$COBOLS
*****************' 1
* Perform 987 times
1 COMPUTE COUNT-X = COUNT-X + 2
987 End-Perform DISPLAY 'BEFORE $$COBOLS ENTRY
*****************' 1 entry 'abcdefg'
1
DISPLAY 'AFTER $$COBOLS ENTRY *****************' 1 continue
1 * * Call nested program ... * CALL 'COBOLS2'
1 * Perform 713
times
1
Compute ii = ii + 1
700
If ii = 714
700 Call 'cbltdli' Using COUNT-X
COUNT-Y COUNT-Z 0
End-If
Evaluate true
700 When ii = 47
continue
1
When ii = 48 or 69
continue
2
When ii = 600 or 700 or 2
if ii = 700
3
next sentence
1 * *
Skip to statement after period. *
else
add 1 to jj
2 end-if
continue
2
When ii > 10000
Call 'CEETDLI' Using COUNT-X COUNT-Y COUNT-Z 0
continue
0
When ii > 20000
Call 'AIBTDLI' Using COUNT-X COUNT-Y COUNT-Z 0
display function upper-case ('ii > 20000') 0 When other
continue
694
End-Evaluate
COMPUTE COUNT-Y = COUNT-Y + 3
699 End-Perform. * CALL PROG-COBOLT
1 * Perform 188
times
1 COMPUTE COUNT-Z = COUNT-Z + 4
188 End-Perform * goback
1 . END PROGRAM
COBOLS. *---------------------------------------------------------------
identification division. Program-Id. COBOLS2.
DATE-COMPILED. 09/01/11. author. E-JCL Software, Inc.
* * This sample COBOL program contains random COBOL statements and
* is intended to demonstrate some of the run-time profiling * capabilities of CobolPro
for z/OS. * data division.
working-storage section. 01 COUNT-X
PIC S9(9) COMP VALUE 5. 01 COUNT-Y
PIC S9(9) COMP VALUE 4. 01 COUNT-Z
PIC S9(9) COMP VALUE 3. 01 II
PIC S9(9) COMP VALUE 0. 01 JJ
PIC S9(9) COMP VALUE 0. * procedure division. * Display 'Executing nested
program COBOLS2 ********' 1 * Perform 1314 times
1 COMPUTE COUNT-Z = COUNT-Z + 2
1314 End-Perform continue
1 * goback
1 . END PROGRAM
COBOLS2. |