SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-152
String Intrinsics
One use of this intrinsic is to determine the creator security group and user ID
numbers for authentication purposes. For example:
#CREATORUSERNAME
returns a string containing the security group and user name of the SeeView
creator access ID. Values are returned in GroupName.UserName format, where:
GroupName ::= creator security group name such as SUPER.
UserName ::=creator security user name such as OPERATOR.
One use of this intrinsic is to determine the creator security group and user names
for authentication purposes. You can obtain group and user information as follows.
#DATE
returns a string containing the current date and time in YY/MM/DD HH:MM:SS format,
where:
YY is year modulo 100 (00..99).
MM is month of the year (1..12).
DD is day of the month.
HH is local civil hour of the day (00..23).
MM is minute after the hour (00..59).
SS is second after the minute (00..59).
#EXPIRES
returns a string containing the date, in (ddMMMyy) format, when this SeeView
object file expires, where dd is day, MMM is month, and yy is year. If the string
returned is the null string “”, this version of the SeeView program does not expire.
#FIRMID
returns a string containing the firmware ID (for example, A, B, C, D, ..) of the
current SeeView terminal. The terminal firmware ID identifies the version of
firmware (or software for PC emulators) for the current T6500 terminal or emulator.
#FKEY
returns the numeric value of the last function key pressed, where F1 to F16
correspond to values of 1 to 16 and SF1 to SF16 correspond to values of 17 to 32.
Var #GrpNo := #CREATORUSERID[1:3];
Var #UsrNo := #CREATORUSERID[5:7];
if #GrpNo = 255 THEN MSG "SeeView Created by SUPER group"
VAR #GrpName := #TAKE #CREATORUSERNAME;
VAR #UsrName := #TAKE #CREATORUSERNAME[#SIZE #GrpName+2:132];