[Çü½Ä]
¨ç
|
Á¶°Ç¸íÀº DATA DIVISION¿¡¼ ´Ü°è¹øÈ£
88·Î Á¤ÀÇµÈ À̸§ÀÔ´Ï´Ù. |
¨è |
Á¶°Ç¸íÀÇ Á¶°ÇÀ» ¸¸Á·ÇÏ´ÂÁö ¾ÈÇÏ´ÂÁö¸¦ ÆÇ´ÜÇÕ´Ï´Ù. |
* |
DATA DIVISION¿¡¼ 88(LEVEL-NUMBER)ÀÌ ±â¼úµÇ¸é,
PROCEDURE DIVISION¿¡¼ IF¹®À¸·Î Á¶°ÇÀ» ¹¯½À´Ï´Ù. |
[¿¹¹® 1]
|
|
|
|
|
|
|
|
|
|
|
|
|
01 |
A-R. |
|
|
|
|
|
|
|
|
|
03 |
SUNG |
PIC |
9. |
|
|
|
|
|
|
|
|
88 |
MEN |
|
|
VALUE |
1. |
|
|
|
|
|
|
88 |
WOMEN |
|
|
VALUE |
2. |
|
|
|
|
|
: |
|
|
|
|
|
|
|
|
|
|
|
|
IF |
MEN |
MOVE |
"³²¼º" |
TO |
L-SUNG |
|
|
|
|
ELSE |
MOVE |
"¿©¼º" |
TO |
L-SUNG. |
<Çؼ³>
¨Í
|
SUNG¿¡ 1ÀÌ ±â¾ïµÇ¾ú´Ù¸é MENÀ̶ó´Â Á¶°ÇÀ»
¸¸Á·ÇÏ°Ô µÇ¸ç, SUNG¿¡ 2°¡ ±â¾ïµÇ¾ú´Ù¸é
WOMENÀ̶ó´Â Á¶°ÇÀ» ¸¸Á·ÇÏ°Ô µË´Ï´Ù. |
¨Î |
( IF MEN )Àº ( IF SUNG = 1 )°ú °°Àº ÀǹÌÀÔ´Ï´Ù. |
[¿¹¹® 2]
|
|
|
|
|
|
|
|
|
|
|
|
|
01 |
B-R. |
|
|
|
|
|
|
|
|
|
03 |
HOME |
PIC |
9(2). |
|
|
|
|
|
|
|
88 |
A1 |
|
|
VALUE |
11. |
|
|
|
|
|
|
88 |
A2 |
|
|
VALUE |
12. |
|
|
|
|
|
|
88 |
A3 |
|
|
VALUE |
13. |
|
|
|
|
|
: |
|
|
|
|
|
|
|
|
|
|
|
|
IF |
A1 |
|
|
GO TO |
A-RTN |
|
|
|
|
|
|
ELSE |
IF |
A2 |
GO TO |
B-RTN |
|
|
|
|
|
|
ELSE |
IF |
A3 |
GO TO |
C-RTN |
|
|
|
|
|
|
ELSE |
DISPLAY |
"ERROR". |
|
|
|
<Çؼ³>
[*]
|
DATA DIVISION¿¡¼
88(LEVEL-NUMBER)ÀÌ ±â¼úµÇ¸é, PROCEDURE DIVISION¿¡¼ IF ¹®À¸·Î Á¶°ÇÀ» ¹¯½À´Ï´Ù. |
|