Date: Thu, 29 May 2008 07:18:46 -0700
Reply-To: karma <dorjetarap@GOOGLEMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: karma <dorjetarap@GOOGLEMAIL.COM>
Organization: http://groups.google.com
Subject: Re: How do I convert string of Hex to Character
Content-Type: text/plain; charset=ISO-8859-1
On 29 May, 14:14, sash...@BELLSOUTH.NET (Paul Dorfman) wrote:
> On Thu, 29 May 2008 04:06:45 -0700, David in the UK <xf...@YAHOO.COM> wrote:
>
> >I have a dataset that contains a variable of length
> >360 and format $hex720. How do I convert this into a
> >series of 360 values, can I use substr and an array?
>
> >Thanks in advance,
>
> >David
>
> David,
>
> This is a classic case of APP (ADDR/PEEK/POKE) class of functions
> application. Below, it is assumed that your variable is called var360:
>
> data new ;
> set old ;
> array var [360] $ 1 ;
> call pokelong (var360, addrlong(var360), 360) ;
> run ;
>
> You can find much more on that and related things at
>
> http://www2.sas.com/proceedings/sugi29/264-29.pdf
>
> and subsequent incarnations of the paper.
>
> Kind regards
> ------------
> Paul Dorfman
> Jax, FL
> ------------
nice paper :D thanks for the info.
|