|
Thx for help Peter.
x'40' was the problem.
>Second, the problem is the XLATE. In the examples where you get wrong data,
>your XLATE is converting the x'40' (blank) to x'00', so 3494402 would be
>translated to 3494002, and 5240211 would be 5200211.
It's only in this example 500a. Original it is 500a varying.
>Third, although it doesn't affect anything, when you eval L =
>%len(hexstring), the result will always be 500. Try eval L =
>%len(%trimr(hexstring)) instead.
>The following (untested) should work:
>c eval num = *zero
>c eval L = %len(%trimr(hexstring))
>c evalr char16 = %subst(hexstring:1:L)
> .......
>c eval alphastring = %char(num)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.