SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-149
String Operators
#DEVICEINFO #string-var [ index-range ]
returns device information for the device named in #string-var. The file-
error, devtype, subtype, rec-length are returned as displayed in the next
example.
In the following example, the file-error is 0, the devtype is 6, the subtype is
4, and the rec-length is 80.
You can also use the operator to validate a file name.
#DOWNCASE #string-var [ index-range ]
returns the contents of #string-var with all alphabetic characters down-shifted
to lowercase.
#DROP #string-var [ index-range ]
drops the first alphanumeric token from #string-var as displayed in this example.
#INFO #string-var [ index-range ]
returns the following file information for the file named. In this example, the file
error ferr is 0000, the file code fcode is 0100, the group ID grp is 255, the user
ID is 255, the rwep security vector is NUNU, and the file name file is
$DATA.MYVOL.X.
#NODE #string-var [ index-range ]
returns sysno name cpusup / cpusgen tos for the node number or name in
#string-var. In this example, the system number is 51, the system name is
\CHICAGO, the cpusup/cpusgen is 3/4, and the NonStop operating system is
version D40.
VAR #s : = "$TERM";
MSG #DEVICEINFO #s; {displays 0 6 4 80
VAR #s : = "$DATA.SUBVOL.NAMETOOLONG";
MSG #DEVICEINFO #s {displays 13 0 0 132,
{ where error = 13 implies illegal filename.
VAR #s:="one two three";
MSG #DROP #s; { displays "TWO three"
VAR #s:="$DATA.MYVOL.X";
MSG #INFO #s; { displays
0000 0100 255,255 NUNU $DATA.MYVOL.X
ferr fcode grp, user rwep file
VAR #s:="*";
MSG #NODE #s; { displays
{ 51 \CHICAGO 3/4 D40