SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-178
String Intrinsics
#TIMEMINUTES
returns a string containing the current time of day in minutes since midnight. You
can use this intrinsic to determine the elapsed time in minutes between two time
samples. For example:
#TIMETENSECONDS
returns a string containing the current time of day in decaseconds since midnight.
#TOSVERSION
returns a string containing the current operating system Vnn product version.
#USERID
returns a string containing the security group and user ID for the current SeeView
process. The values are returned in GGG,UUU format, where:
GGG is the group number.
UUU is the user number.
This intrinsic can be used to determine the security group and user accessor ID of
the SeeView process running the current script:
#USERNAME
returns the user name of the current SeeView process access ID. The name is
returned in GROUP.USER format.
You can change the current access ID and creator access ID with the HELLO
statement. To obtain the group and user:
#VERSION
returns a string containing the product version of the current SeeView process. The
format of the product version information returned is in Vnn format, where V is a
VAR #LastTime, #ElapsedMinutes;
#LastTime := #TIMEMINUTES;
...
#ElapsedMinutes := #TIMEMINUTES - #LastTime;
IF #ElapsedMinutes<0 THEN MSG "Date Changed";
V represents the letter version of the operating system.
nn represents the current number version.
Var #GrpNo := #USERID[1:3];
Var #UsrNo := #USERID[5:7];
IF #GrpNo <> 255 THEN MSG "Not in SUPER group";
VAR #GrpName := #TAKE #USERNAME;
VAR #UsrName := #TAKE #USERNAME[#SIZE #GrpName+2:132];