SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-167
String Intrinsics
taskid. For example the following displays TACL status for all processes running
in the same CPU as the current WITH taskid.
#TASKDATA
returns a string containing the last data received from the current WITH taskid.
The WITH statement indicates which task ID’s attributes are returned by the
#TASK... intrinsics.
You can use this intrinsic to programmatically inspect the data returned from a
taskid. For example:
#TASKEDITMODE
returns a numeric value representing the page number where a window is in edit
mode for the current WITH taskid. If there are no windows in edit mode for the
current WITH taskid, zero is returned so that you can use the intrinsic as a
Boolean. The WITH statement indicates which task ID’s attributes are returned by
the #TASK... intrinsics.
You can use this intrinsic to programmatically determine if and where there is a
window in edit mode for a given taskid. For example:
#TASKERROR
returns error information about the last TASK statement executed with an
ALLOWERROR option. The value returned depends on which process creation
procedure was used in the last TASK statement.
TASK FUP;
TASK TACL;
WITH FUP;
WINDOW TACL,"STATUS " & #TASKCPU;
TASK netmon;
WRITE netmon, "cpus";
WITH netmon;
DO BEGIN
READ netmon;
IF #NUMERIC #TASKDATA THEN BEGIN { have node data
node := #TAKE #TASKDATA;
..
..
END;
END UNTIL #TASKPROMPTING;
?PROC ShowEditWindow ( tasknum )
{------------------------------}
{ Display page that has a window in edit mode for "tasknum".
{---------------------------------------------------------}
PARM tasknum;
WITH tasknum;
IF NOT #TASKEDITMODE THEN BEGIN
MSG "No windows in edit mode for " & #TASKSYMBOL;
RETURN;
END;
PAGE #TASKEDITMODE;