SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-175
String Intrinsics
You can use this intrinsic to display the name of a task when generalized WITH
taskid logic is used. For example:
#TASKTIMESTAMP
returns a string representing the date and time that the current WITH taskid was
started or stopped. You can use the WITH taskid statement to specify which
taskid’s attributes are returned by the #TASKTIMESTAMP intrinsic. The format of
the data returned is YY/MM/DD HH:MM:SS. You can use the #TASKSTOPPED
intrinsic to determine whether a task is currently stopped or running.
#TASKUSERID
returns a string containing the security group and user ID for the current WITH
taskid. The WITH statement indicates which taskid's attributes are returned by
#TASK... intrinsics. The values are returned in GGG,UUU format, where:
GGG is the security group number.
UUU is the security user number.
Use this intrinsic to determine the security user ID associated with any SeeView
TASK variable. For example, this example returns the security group and user ID
of the FUP task that has SeeView opened.
#TASKUSERNAME
returns a string containing the security group and user name for the current WITH
taskid. The WITH statement indicates which taskid's attributes are returned by
the #TASK... intrinsics. Values are returned in GroupName.UserName format,
where:
GroupName ::= security group name such as SUPER.
UserName ::= security user name such as OPERATOR.
?PROC DoTaskCommand ( tasknum , #command )
{----------------------------------------}
{ This proc performs #command against tasknum.
{--------------------------------------------}
PARM tasknum, #command;
WITH tasknum;
IF #TASKSTOPPED THEN BEGIN
MSG "Please wait, " & #TASKSYMBOL & " is not running.";
FLUSH;
CALL DoTaskStart ( #TASKSYMBOL );
END;
WINDOW tasknum,#command CACHE LASTLINE;
WITH FUP;
Var #GrpNo := #TASKUSERID[1:3];
Var #UsrNo := #TASKUSERID[5:7];
IF #GrpNo = 255 THEN MSG "FUP accessorid is in SUPER group";