ID DIVISION.
PROGRAM-ID. P0612.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
COPY 'UTI\PERSON.FC'.
DATA DIVISION.
FILE SECTION.
COPY 'UTI\PERSON.FD'.
WORKING-STORAGE SECTION.
01 EOF PIC X VALUE 'N'.
77 PERSON-FSTATUS PIC X(02).
77 CUT PIC 9999 VALUE 0.
PROCEDURE DIVISION.
MAIN SECTION.
MAIN-RTN.
OPEN I-O PERSON-FILE.
ACCEPT CUT.
MOVE CUT TO PERSON-NO.
READ PERSON-FILE
END-READ.
DISPLAY PERSON-NO PERSON-NAMEX PERSON-BANK-NO.
DISPLAY PERSON-BIRTHDAY PERSON-MAIL-ADDR.
DISPLAY PERSON-ARV-DATE PERSON-EDUC-XXX.
DISPLAY PERSON-DEDUCT-DAY PERSON-DEDUCT-MONTH.
DISPLAY PERSON-DUTY PERSON-INSURE-BEG-DATE.
DISPLAY PERSON-INSURE-MONTH-PAY.
DISPLAY WAGE-DATA.
DISPLAY PERSON-PRO-SALARY-FLAG PERSON-PRO-SALARY.
DISPLAY PERSON-PRO-PROMOTE-FLAG.
CLOSE PERSON-FILE.
MAIN-EXIT.
9月 08, 2015
COBOL 讀取資料
標籤:
COBOL
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言