SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-107
TASK
DEVTYPE PROCESS | TERMINAL
specifies the type of device that the SeeView program is to emulate for the
declared task. Certain utilities, such as FUP, SPOOLCOM, and TACL, behave
differently if they perceive themselves to be communicating with a PROCESS
versus a TERMINAL.
This option lets you specify the device type that the SeeView program returns to
DEVICEINFO calls. For example, TASK FUP DEVTYPE TERMINAL causes the
SeeView program to return device type 6,0 (terminal) to FUP DEVICEINFO calls.
TASK FUP DEVTYPE PROCESS causes the SeeView program to return device
type 0,0 (process) to the FUP task.
The DEVTYPE option works only when subtype 30 is set for the SeeView object
file. You can set it with this BIND command:
CHANGE SUBTYPE 30 IN SEEVIEW.
PROCESS
indicates that the SeeView program replies to DEVICEINFO messages from
the declared task with a device type 0,0.
TERMINAL
indicates that the SeeView program replies to DEVICEINFO messages from
the declared task with a device type 6,0. The procedure DEBUGPROCESS
requires that the TERMINAL device type for the file where the debug prompt is
to appear. Before you use the TACL DEBUG command, check that the device
type returned to TACL by the SeeView program is a TERMINAL. To do so at
any time, enter this SeeView statement and press Shift-Return:
TASK TACL DEVTYPE TERM
FORMATDATA format-strg-rules
specifies a string expression that causes the SeeView program to automatically
reformat each message received from the specified taskid. The format-strg-
rules string expression is any valid string expression containing #TASKDATA
string intrinsic references. To reformat selected data from each message, specify
the desired fields in the format-strg-rules expression.
For example, to format FUP INFO output automatically so that each line of output
is preceded with “[ ]” and terminated with a prompt production symbol “<==?”:
TASK FUP FORMAT "'[ ]' & #TASKDATA & '<==?'";
WRITE FUP,"INFO *";
WINDOW FUP MENU "CALL DoOp(#MENUINPUT");
Thus you can reformat the output so that each line contains an input field and is
defined as a prompt production.
FORMATDATA “” disables the format option.