A SERVICE OF

logo

Appendix B 727
Expression Evaluator Functions
BASENAME (string) returns the
filename
component
CALC basename
(‘a.b.c’)
CALC basename
(‘/a/b/c’)
CALC basename
(’./a/b’)
CALC basename
(“./a.sl”,”.sl”)
CALC basename (‘/’)
CALC basename
(“*feq”)
CALC basename
(‘$null’)
CALC basename
(‘abc.g’,’c’)
CALC basename
(/usr/lib/liby.a’,’.a’)
CALC basename
(‘/usr/lib/liby.a’,’liby.a’
A
c
b
a
/
*FEQ
$NULL
AB
liby
liby.a
BNOT bitwise not bnot 5 -6
BOR bitwise or 5 bor 2 7
BOUND(varname) variable
definition test
(2)
bound(HPPATH) TRUE
BXOR bitwise
exclusive or
7 bxor 5 2
CHR(integer) ASCII value
(integer) ===>
character
chr(65) A
CSL circular shift
left (3)
-2 csl 2 -5
CSR circular shift
right (3)
-7 csr 1 -4
DECIMAL(string) returns a string
value of an
integer
CALC decimal (255)
CALC
len(decimal($ff))
setvar i 0
while setvar(i,i+1) <
10 and
finfo(“FILE”+DECIMA
L(I), ‘exists’) do
...
255
3, $3, %3
Symbol Function Example Result