SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-4
ACCEPT
ACCEPT
The ACCEPT statement reads fields from the screen and stores this information in
string variables or a message cache.
Use the ACCEPT statement to read data from the terminal screen and store this
information in a list of user-defined string variables or in the cache associated with a
taskid. You can specify both a list of string variables and a cache taskid for the same
ACCEPT statement.
The screen area to be accepted is defined by the area of the window located at the
current buffer address unless you specify the AREA option. Data is accepted
regardless of how modified-data-tags are set for fields in the defined area.
#string-var [,#string-var ]
specifies that data is to be mapped onto the string variable list as it is received
from the terminal in a left-to-right, top-to-bottom basis.
The data from the first field received from the terminal is stored in the first string
variable in the list, the next field data is stored in the second string variable, and so
on. The values accepted into the string variable list depend on how the WINDOW
options NOGLASS or NOPROTECT are specified for the windows being accepted.
Accepting data from a NOGLASS or NOPROTECT window causes additional
fields to be mapped into the variable list. To avoid confusion, use the WINDOW
GLASS option for any menu input window that is to have an ACCEPT string
variable list operation performed against it.
ERROR integer-var
assigns the file-system error to the specified integer variable (integer-var).
When you specify the ERROR option, input-output operation errors are not retried.
Instead, they are returned in the error variable. Because the SeeView program
automatically handles input-output operation errors that occur during the execution
of an ACCEPT statement, use of the ERROR integer-var clause is considered
an advanced scripting technique.
ACCEPT [ #string-var [,#string-var]... ]
[ ERROR integer-var ]
[ FKEYWAIT ]
[ INTO taskid [ FIELDPERLINE ] ]
[ PROTECTED | UNPROTECTED ]
[ TIMEOUT seconds ]
[ TRACE taskid ]
[ WINDOW | AREA row [,column [,width [,height ] ] ] ]