SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-150
String Operators
#NUMERIC #string-var [ index-range ]
returns 1 if the first character of #string-var is 0 … 9.
#ORD #string-var [ index-range ]
returns the ordinal decimal value of the first byte contained in the specified
#string-var.
#PROC #string-var [ index-range ]
returns the name of the file or cache where the procedure name contained in
#string-var exists.
#SIZE #string-var [ index-range ]
returns the length of #string-var in characters. In the following example, the
length of the string variable #s is 28.
#SPECIAL #string-var [ index-range ]
returns 1 if the first character of #string-var is a special character.
#TAKE #string-var [ index-range ]
returns and makes uppercase the first alphanumeric token in #string-var.
In this example, the first alphanumeric token in #s is one.
#TASK #string-var [ index-range ]
returns “1” if the task name contained in #string-var exists. Otherwise, it
returns “0”. In this example, the task name represented by #s is TACL, and it does
exist.
VAR #s : ="A";
MSG #ORD #s; {displays 65
VAR #s:="SEEPROMPT";
MSG #PROC #s; { displays
$SYSTEM.SYSTEM.SEESHELL
VAR #s:="this string is 28 chars long";
MSG #SIZE #s; { displays "28"
VAR #s:="one two three";
MSG #TAKE #s; { displays "ONE"
TASK tacl;
VAR #s:="TACL";
MSG #TASK #s; { displays "1"