Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
11.2 Designing Video Forms with ACCEPT and DISPLAY Statement Extensions
Figure 11–1 Adding Information to a Master File with a Video Form
1
12345678901234567890123456789012345678901234567890123456789012345678901234567890
1
2
*******PERSONNEL MASTER FILE DATA INPUT FORM****
3
4
5
Employee Number:____________
6
7
Employee Name:___________________________________
8
9
Employee Address:________________________________
10
11
Employee Phone No.:______________________________
12
13
Department:______________________________________
14
15
Supervisor Name:_________________________________
16
17
Supervisor Phone No.:____________________________
18
19
Current Salary:$_________________________________
20
21
Date Hired:__/__/__
22
23
24
Designing Your Form with ACCEPT and DISPLAY Options
When you design a video form, you can use the ACCEPT and DISPLAY options to
do the following:
•
Erase specific parts or the entire screen.
•
Use relative and absolute cursor positioning.
•
Specify video attributes of data to be displayed and accepted.
•
Convert data to appropriate usage when accepting or displaying data.
•
Handle error conditions when accepting and displaying data.
•
Provide screen protection by limiting the number of characters typed on the
terminal when accepting data.
•
Accept data without echoing.
•
Specify default values for ACCEPT statements.
•
Define and handle special control keys for ACCEPT statements.
•
Allow field editing.
The remainder of this chapter describes these topics.
11.2.1 Clearing a Screen Area
To clear part or all of your screen before you accept or display data, you can use
one of the following ERASE options of the ACCEPT and DISPLAY statements:
•
ERASE SCREEN—Erase the entire screen before accepting or displaying
data at the specified or implied cursor position.
11–4 Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
2
3
4
Wage Class:______
Next Review Date:__/__/__
5
6
7
ZK−6089−GE
8
Need help?
Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?
Questions and answers