Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
11.2 Designing Video Forms with ACCEPT and DISPLAY Statement Extensions
Example 11–11 EDITING Phrase Sample Code
.
.
.
PROCEDURE DIVISION.
A1000-BEGIN.
OPEN I-O EMP-FILE.
.
.
.
B1000-MODIFY.
DISPLAY "MODIFY EMPLOYEE INFORMATION FORM"
ERASE SCREEN
AT LINE 2
COLUMN 8.
DISPLAY "Enter Employee Number : "
AT LINE PLUS 2
COLUMN 8.
ACCEPT EMP-KEY
FROM LINE 4 COLUMN 32
PROTECTED WITH EDITING REVERSED
DEFAULT IS CURRENT
AT END
STOP RUN.
.
.
.
B2000-DISPLAY.
MOVE EMP-REC TO OUT-REC.
DISPLAY "Date of Hire : "
AT LINE PLUS 2
COLUMN 8.
DISPLAY MON-IN
AT
COLUMN 24.
DISPLAY "-"
AT
COLUMN 26.
DISPLAY DAY-IN
AT
COLUMN 27.
DISPLAY "-"
AT
COLUMN 29.
DISPLAY YR-IN
AT
COLUMN 30.
DISPLAY "Current Value :"
AT COLUMN 38.
DISPLAY MON-NUM
AT
COLUMN 54.
DISPLAY "-"
AT
COLUMN 56.
DISPLAY DAY-NUM
AT
COLUMN 57.
DISPLAY "-"
AT
COLUMN 59.
DISPLAY YR-NUM
AT
COLUMN 60.
DISPLAY "Department :"
AT LINE PLUS 2
COLUMN 8.
DISPLAY DEPT-IN
AT
COLUMN 21.
DISPLAY "Current Value :"
AT
COLUMN 38.
DISPLAY DEPT-NUM
AT
COLUMN PLUS.
DISPLAY "First Name :"
AT LINE PLUS 2
COLUMN 8.
DISPLAY F-NAME-IN
AT
COLUMN 21.
DISPLAY "Current Value :"
AT
COLUMN 38.
DISPLAY F-NAME
AT
COLUMN PLUS.
DISPLAY "Last Name :"
AT LINE PLUS 2
COLUMN 8.
DISPLAY L-NAME-IN
AT
COLUMN 20.
DISPLAY "Current Value :"
AT
COLUMN 38.
DISPLAY L-NAME
AT
COLUMN PLUS.
ACCEPT MON-NUM
FROM LINE 6 COLUMN 24
PROTECTED WITH EDITING REVERSED
DEFAULT IS CURRENT
AT END
STOP RUN.
DISPLAY MON-NUM
AT LINE 6
COLUMN 54.
(continued on next page)
Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms 11–29
Содержание COBOL AAQ2G1FTK
Страница 22: ......
Страница 30: ......
Страница 94: ......
Страница 110: ......
Страница 146: ......
Страница 180: ......
Страница 194: ...Processing Files and Records 6 1 Defi...
Страница 300: ......
Страница 490: ......
Страница 516: ......
Страница 517: ......
Страница 530: ......
Страница 534: ......
Страница 590: ......
Страница 620: ......