Date: Thu, 28 Sep 2000 08:32:04 -0500
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jonathan Goldberg <Jonathan_Goldberg@MASTERCARD.COM>
Subject: Re: How to reverse variables
Content-type: text/plain; charset=us-ascii
>I tried this code but I do not see the desired results. What am I
>missing? Thanks. I just wanted to add Paul's solution to the others
>you received so I could post them to my web site for future use.
>%let n = 5;
> set vset;
> call poke(reverse(peekc(addr(v1),&n)),addr(v1),&n);
peekc is for character data, as in the original problem. If the first data set
is changed to:
the code works as intended.