× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: convert packed to alpha
  • From: "Simmerlein, Stefan" <S.Simmerlein@xxxxxxxxxxx>
  • Date: Tue, 10 Jul 2001 07:34:01 +0200

Title: Re: convert packed to alpha

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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.