SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-172
String Intrinsics
#TASKPID
returns a string containing the process ID of the current WITH taskid. The WITH
taskid indicates which taskid’s attributes are returned by the #TASK... intrinsics.
You can use this intrinsic to pass the process ID of the current WITH taskid to
another process.
#TASKPIN
returns a string containing the process identification number (PIN) of the current
WITH taskid. The WITH taskid indicates which task ID's attributes are returned
by the #TASK... intrinsics. One use of this intrinsic is to determine the PIN of the
current WITH taskid. For example, this displays TACL status for the process
associated with the current WITH taskid.
#TASKPROC
returns the name of the Guardian procedure (NEWPROCESS or
PROCESS_CREATE_) used to launch processes with the most recent RUN,
OPEN, or TASK statement. This intrinsic is useful in interpreting error codes
returned by the intrinsics #TASKERRORTYPE and #TASKERROR because the
values returned depend on which procedure was used to launch the process. For
information on error codes returned by the procedures PROCESS_CREATE_ and
NEWPROCESS, see the Guardian Procedure Calls Reference Manual. This
intrinsic is not a function of the WITH statement.
#TASKPROMPT
returns a string containing the actual prompt text from the current WITH taskid.
The WITH taskid indicates which taskid’s attributes are returned by the #TASK...
intrinsics.
TASK FUP;
TASK TACL;
WITH FUP;
WINDOW TACL,"STATUS " & #TASKCPU & "," & #TASKPIN;
RUN FUP ALLOWERROR;
IF #TASKPROC = "PROCESS_CREATE_" THEN BEGIN
IF #TASKERRORTYPE=1 AND #TASKERROR=11 THEN BEGIN
MSG "File not present";
END;
END;
IF #TASKPROC = "NEWPROCESS" THEN BEGIN
IF #TASKERRORTYPE=3 AND #TASKERROR=11 THEN BEGIN
MSG "File not present";
END;
END;