SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-168
String Intrinsics
If NEWPROCESS was used in the last TASK statement, the value of the
#TASKERROR intrinsic is the value of bits <8:15> of the ERROR parameter
returned by the Guardian procedure call NEWPROCESS.
If PROCESS_CREATE_ was used in the last TASK statement, the value of the
#TASKERROR intrinsic is the value of the ERROR^DETAIL parameter returned by
the Guardian procedure call PROCESS_CREATE_.
This intrinsic does not require a WITH statement to have meaning.
The ALTER HIGHPINTASKS ON/OFF option controls whether the Guardian
PROCESS_CREATE_ or NEWPROCESS procedure is used for process creation.
If you want PROCESS_CREATE_ to be used, specify HIGHPIN ON. If you want
NEWPROCESS to be used, specify HIGHPIN OFF.
The intrinsic #TASKPROC returns the name of the procedure that was used in the
last task statement. The error codes returned by #TASKERRORTYPE and
#TASKERROR depend on which procedure was used to launch the process. For
information on error codes returned, see the GUARDIAN Procedure Calls
PROCESS_CREATE_ and NEWPROCESS. You use the #TASKERRORTYPE and
#TASKERROR intrinsics to programmatically determine if a TASK statement
executed successfully. For example:
#TASKERRORTYPE
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.
If NEWPROCESS was used in the last TASK statement, the value of the
#TASKERRORTYPE intrinsic is the value of bits <0:7> of the ERROR parameter
returned by the Guardian procedure call NEWPROCESS.
If PROCESS_CREATE_ was used in the last TASK statement, the value of the
#TASKERRORTYPE intrinsic is the error value returned by the Guardian
procedure call PROCESS_CREATE_.
This intrinsic does not require a WITH statement to have meaning.
The ALTER HIGHPINTASKS ON/OFF option controls whether the Guardian
PROCESS_CREATE_ or NEWPROCESS procedure is used for process creation.
If you want PROCESS_CREATE_ to be used, specify HIGHPIN ON. If you want
NEWPROCESS to be used, specify HIGHPIN OFF.
The intrinsic #TASKPROC returns the name of the procedure that was used in the
last process launch. The error codes returned by #TASKERRORTYPE and
TASK sqlci ALLOWERROR;
IF #TASKERRORTYPE THEN BEGIN { task not started, show error
MSG "TASK Proc = " & #TASKPROC;
MSG "TASK Error = " & #TASKERRORTYPE & "," & #TASKERROR;
RETURN;
END;