-
Notifications
You must be signed in to change notification settings - Fork 2
/
ronf.cbl
30 lines (29 loc) · 871 Bytes
/
ronf.cbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
******************************************************************
* Author:
* Date:
* Purpose:
* Tectonics: cobc
******************************************************************
IDENTIFICATION DIVISION.
PROGRAM-ID. YOUR-PROGRAM-NAME.
DATA DIVISION.
FILE SECTION.
WORKING-STORAGE SECTION.
01 X PIC S9(5) VALUE 12345.
01 Y PIC S9(3) VALUE 0.
01 A PIC X(5) VALUE "ABCDE".
01 B PIC X(3) VALUE SPACES.
01 WORK.
05 ASP PIC X(3).
01 P PIC 9(2)V9 VALUE 2.1.
01 Q PIC 9(2) VALUE 6.
PROCEDURE DIVISION.
MAIN-PROCEDURE.
ADD P TO Q.
DISPLAY Q.
MOVE "ABC" TO ASP.
DISPLAY "ASP: "ASP.
INITIALIZE WORK.
DISPLAY WORK.
DISPLAY ASP.
END PROGRAM YOUR-PROGRAM-NAME.