Hi,
I am trying to use the REXX X2D function. It does not seem to work when a variable is specified but is okay with a literal value.
IBM File Manager for z/OS
FMNBC514 REXX procedure statements read from SYSIN.
*REXXPROC
aix_key_len = substr(inrec,5,1)
aix_key_len = X2D(aix_key_len)
say 'AIX Key Length' aix_key_len
call find_dat
do while down(1) /= "EOF"
call find_dat
end
find_dat:
if substr(inrec,6,25) == 'RAMBO J' then
say 'inrec 'recsin()' 'substr(inrec,120000,25)
return 0
FMNBB060 REXX procedure statements processed by REXX.
4 +++ aix_key_len = X2D(aix_key_len)
IRX0040I Error running FMNINTEX, line 4: Incorrect call to routine
FMNBB382 REXX exec terminated with RC 20040
IBM File Manager for z/OS
FMNBC514 REXX procedure statements read from SYSIN.
*REXXPROC
aix_key_len = substr(inrec,5,1)
aix_key_len = X2D('19')
say 'AIX Key Length' aix_key_len
call find_dat
do while down(1) /= "EOF"
call find_dat
end
find_dat:
if substr(inrec,6,25) == 'RAMBO J' then
say 'inrec 'recsin()' 'substr(inrec,120000,25)
return 0
FMNBB060 REXX procedure statements processed by REXX.
AIX Key Length 25
inrec 41242 99242168500006 992421685
------------------------------
Girish Sajja
------------------------------