SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-173
String Intrinsics
You can use this intrinsic is to check the current WITH taskid prompt text in order
to determine the state of the task. For example:
#TASKPROMPTING
returns a numeric value representing the maximum read length in bytes of the
prompt associated with the current WITH taskid. The WITH statement indicates
which task ID’s attributes are returned by the #TASK... intrinsics. If the current
WITH taskid is not prompting, #TASKPROMPTING returns 0 so that you can use
this intrinsic as a Boolean. For an example, see #TASKPROMPT.
#TASKSECONDS
returns a string representing the number of seconds since the current WITH
taskid was started or stopped. You can use the WITH taskid statement to
specify which task ID’s attributes are returned by the #TASK... intrinsics. You can
use the #TASKSTOPPED intrinsic to determine whether a task is currently stopped
or running. If the number of seconds is greater than 32766, #TASKSECONDS
returns 32766.
#TASKSTART
returns a numeric value that indicates whether the last TASK statement executed
actually started a new process. The value returned is zero if a new process was
not started. Otherwise, a nonzero value is returned so that you can use this
intrinsic as a Boolean.
This intrinsic is not a function of the WITH taskid statement but rather a function
of the last TASK statement executed.
TASK fup;
WITH fup;
DO BEGIN { Wait until task is prompting, then test prompt.
READ fup;
END UNTIL #TASKPROMPTING;
IF (#TAKE #TASKPROMPT <> "-") THEN BEGIN
MSG "FUP is in an unknown state.";
RETURN;
END;