IDENTIFICATION DIVISION.
PROGRAM-ID. RELATIF.
AUTHOR. ROMI.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT MHS ASSIGN TO DISK.
ORGANIZATION IS RELATIVE.
ACCESS MODE IS DYNAMIC.
RELATIVE KEY IS NO-REL.
FILE STATUS IS STATUS-SALAH.
DATA DIVISION.
FILE SECTION.
FD MHS.
LABEL RECORD IS STANDARD.
VALUE OF FILE-ID IS 'DATA.DAT'.
DATA RECORD IS RECMHS.
01 RECMHS.
02 NPM PIC 9(8).
02 NAMA PIC X(20).
02 KELAS PIC X(5).
WORKING-STORAGE SECTION.
01 JUDUL.
02 WS-NAMA PIC X(25).
02 WS-NPM PIC 9(8).
02 WS-KELAS PIC X(8).
02 NPM-CARI PIC 9(8).
01 TAMBAH-DATA PIC X.
88 LAGI VALUE 'Y', 'y'.
88 TDK VALUE 'T', 't'.
01 X PIC 9 VALUE 0.
77 STATUS-SALAH PIC XX.
77 NO-REL PIC 9 (8).
77 PIL PIC X.
77 PIL2 PIC X.
77 PIL3 PIC X.
77 CR-NPMX PIC X VALUE 'Y'.
SCREEN SECTION.
01 HAPUS.
02 BLANK SCREEN.
01 MASUKAN.
02 LINE 5 COLUMN 24 VALUE 'NPM : '.
02 COLUMN PLUS 2 PIC X(8) TO NPM.
02 LINE 7 COLUMN 24 VALUE 'NAMA : '.
02 COLUMN PLUS 2 PIC X(20) TO NAMA.
02 LINE 9 COLUMN 24 VALUE 'KELAS : '.
02 COLUMN PLUS 2 PIC X(5) TO KELAS.
01 MENU.
02 LINE 5 COLUMN 27 '<
0 comments:
Post a Comment