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


 
[¹®Á¦ 12]
 [ACCEPT ... FROM] ¹®À» »ç¿ëÇÏ¿©, ½Ã½ºÅÛ¿¡¼­ ³¯Â¥¿Í ½Ã°£À» ÀÔ·Â¹Þ¾Æ È­¸é¿¡ Ç¥½ÃÇÏ´Â ÇÁ·Î±×·¥ÀÇ ¿¹¸¦ º¸À̽ÿÀ.
 
 
*
IDENTIFICATION DIVISION.
PROGRAM-ID. T12.
*
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. SAMSUNG.
OBJECT-COMPUTER. SAMSUNG.
*
DATA DIVISION.
WORKING-STORAGE SECTION.
*
01 DATE-REC.
03 YY PIC 99.
03 MM PIC 99.
03 DD PIC 99.
01 TIME-REC.
03 T-HH PIC 99.
03 T-MM PIC 99.
03 T-SS PIC 99.
03 T-MS PIC 99.
*
PROCEDURE DIVISION.
START-RTN.
DISPLAY   " "   ERASE.
ACCEPT-DATE.
ACCEPT   DATE-REC  FROM  DATE.
DISPLAY YY LINE  15 POSITION  10
" YEAR " POSITION  0
MM POSITION  0
" MONTH " POSITION  0
DD POSITION  0
" DAY" POSITION  0.
ACCEPT-TIME.
ACCEPT   TIME-REC  FROM  TIME.
DISPLAY T-HH  LINE 18 POSITION  10
" HH " POSITION  0
T-MM POSITION  0
" MM " POSITION  0
T-SS POSITION  0
" SS " POSITION  0
T-MS POSITION  0
" MS" POSITION  0.
END-RTN.
STOP RUN.
 
 
ÁöÀû ¼ÒÀ¯±ÇÀ» º¸È£ÇսôÙ.
 
¢Ð ¢½ ¢Ñ