SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-6
ACCEPT
taskid
specifies an arithmetic expression as a valid taskid number. The cache
associated with this taskid is the cache that the ACCEPT statement applies to.
FIELDPERLINE
maps the data received from each field into a separate line of cache. This
provides a generalized means of processing the lines of text accepted from an
input area.
If you do not specify FIELDPERLINE, data received from the screen is mapped
column for column directly into the cache. For example, if data is from column
10 of the ACCEPT area, the data in the cache is blank-filled with nine blanks
and then the data. Fields that contain escape sequences are not mapped into
the cache. Data is offset in the cache relative to the area being accepted and
not relative to the data’s absolute screen address.
PROTECTED
specifies that both protected and unprotected fields are to be read. PROTECTED
uses the T6500 terminal Read With Address All ESC ']' area sequence to accept
both PROTECTED and UNPROTECTED fields within the specified area.
UNPROTECTED
specifies that only unprotected input fields are read. UNPROTECTED causes the
T6500 terminal Read Buffer ESC '<' sequence to be used to accept unprotected
input fields from the specified area regardless of how modified data tags are set.
This is the default.
TIMEOUT seconds
specifies the maximum number of seconds a script is to wait for the FKEYWAIT
operation to complete before SeeView cancels the ACCEPT and returns control to
the script. To determine if a timeout occurred, use the ERROR option and check if
the error variable has a value equal to 40. For example:
ACCEPT FKEYWAIT TIMEOUT 5 ERROR err;
This command returns a value of err=40 if a timeout occurred.
TRACE taskid
indicates that data received from the terminal is appended to the end of the cache
associated with taskid.
Note. HP recommends that the PROTECTED option be used only with the INTO option. The
PROTECTED option with an ACCEPT to a list of string variables is not recommended because
the PROTECTED option causes many extra fields to be accepted. Storage is thus dependent
on the fields generated by WINDOW
options such as GLASS, NOGLASS, and PROTECT.