SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-134
WRITE
WRITE
The WRITE statement writes the specified string to a process or a cache.
taskid
specifies an integer expression that represents the taskid number of the task that
string is to be written to. The WRITE statement automatically synchronizes script
execution to writereads (prompts) from the specified taskid. Any data previously
written or pending from the taskid process is automatically saved to cache until a
WRITEREAD is received from that taskid. When the WRITEREAD is received, the
specified string is written (or replied) to the process represented by taskid.
For a description of the taskid declaration, see TASK on page 9-104.
*
causes the WRITE statement to write to the SeeView message cache rather than
to the process specified with taskid.
PEEROK
specifies that the write is a blind write to any process that is a peer to the specified
taskid. Peer tasks are all tasks that have the same $SeeView-process-name
#taskid subdevice opened. Without this option, the SeeView program waits
specifically for a prompt from only the specified taskid.
string
specifies a string expression that indicates the string to be written to the
process, or cache, indicated by taskid.
The string can be any combination of concatenated quoted strings, integers, and
string variables. (See examples.)
WRITE taskid|* [PEEROK ] ,string [,reply-err ] [,error ]
[CACHE index [AFTER ]] [FROM task | * ]
[BEFORE] [CACHE index ]
[DELETE] [FOR lines ]
[UPDATE] [DELIMIT string ]
[COMPRESS ]
[LINESENT var ]
[MAXBYTES cnt ]
[MORE string ]
Note. The script writer assumes the responsibility that use of the PEEROK option causes a
blind write to any peer task that is currently prompting.