°æ°í
  ¹Ú¿ì¹üÀÇ Çã¶ô ¾øÀÌ´Â »ó¾÷Àû »ç¿ëÀ» ±ÝÇÕ´Ï´Ù.


 
[¹®Á¦ 11]
 ¾Æ·¡¿¡ ÀÖ´Â T14.DAT¿¡¼­ ·¹Äڵ带 ÀÐ¾î ¿Ô¾î, ´Ù½Ã T14.OUT¿¡ ÀÔ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇϽÿÀ. 

1 0 3 K i m     J u n g   J u n     0 8 0 0 9 5 0 9 9
1 0 2 K i m     B o n g   H y u n   0 8 0 0 9 5 0 8 8
1 0 5 K i m     J u n g   M i n     0 8 0 0 9 5 0 8 9
1 0 4 L e e     H y u n   J o o     0 9 0 0 8 0 0 9 5
1 0 1 J a n g   D a e     Y o u n g 0 9 0 0 8 0 0 9 5

 
 
*
IDENTIFICATION DIVISION.
PROGRAM-ID. T11.
*
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. SAMSUNG.
OBJECT-COMPUTER. SAMSUNG.
*
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT  IN-FILE     ASSIGN TO  INPUT    "T11.DAT".
SELECT  OUT-FILE  ASSIGN TO  OUTPUT  "T11.OUT"
ORGANIZATION  IS  BINARY  SEQUENTIAL.
*
DATA DIVISION.
FILE SECTION.
*
FD IN-FILE      LABEL  RECORD  IS  STANDARD.
01 IN-REC.
03 ID-1 PIC 9(3).
03 NAME PIC X(15).
03 KOR PIC 9(3).
03 ENG PIC 9(3).
03 MAT PIC 9(3).
FD OUT-FILE   LABEL  RECORD  IS  STANDARD.
01 OUT-REC.
03 O-ID PIC 9(3).
03 O-NAME PIC X(15).
03 O-KOR PIC 9(3).
03 O-ENG PIC 9(3).
03 O-MAT PIC 9(3).
*
PROCEDURE DIVISION.
START-RTN.
OPEN INPUT IN-FILE
OUTPUT OUT-FILE.
READ-RTN.
READ    IN-FILE   AT END   GO TO   END-RTN.
WRITE   OUT-REC  FROM  IN-REC.
GO TO   READ-RTN.
END-RTN.
CLOSE   IN-FILE   OUT-FILE.
STOP  RUN.
 
 
ÁöÀû ¼ÒÀ¯±ÇÀ» º¸È£ÇսôÙ.
 
¢Ð ¢½ ¢Ñ