MPE/iX Commands Reference Manual (32650-90877)
Appendix B 641
Expression Evaluator Functions
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
DELIMPOS
(
str,
[,
delims
]
[,
nth
][,
start
])
returns index in
str
of the
nth
delimiter
beginning at
start
; default
delims
are a
space,a comma,
a semicolon, an
equals sign, left
and right
parentheses,
left and right
brackets, single
quote, double
quote, and Tab;
default
nth
is 1;
default
start
is
1
DELIMPOS('file a=bb,
old;rec=40,,f,ascii')
5
DIRNAME()(
string
)
returns dirctory
components of a
filename
DWNS(
string
) shift string to
lowercase (7)
dwns('aBC&#dE') abc&#de
EDIT(
string,edit
str
[,
start
])
performs full
REDO-like
editing of a
string
EDIT(`abcdefg','>dd')
EDIT('ab cd;g', 'dwd')
'abce'
'cd;g'
FINFO(
filename,
option
)
file information
(6)
FINFO('x.pub',0) TRUE
Table B-1. Expression Evaluator Functions
Symbol Function Example Result