Date: Wed, 24 Nov 2010 21:53:10 -0200
Reply-To: Adriano Rodrigues <adriano@GPP.COM.BR>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Adriano Rodrigues <adriano@GPP.COM.BR>
Subject: Re: If VARIABLE Does Not Exist Then Do...
In-Reply-To: <52BCFA1ED9FD4F38A4DE2F5AAC102936@D1871RB1>
Content-Type: text/plain; charset=ISO-8859-1
why sas put this value (99) for the variables?
2010/11/24 Nat Wooding <nathani@verizon.net>
> If you move Toby's retain statement so that it appears before the set
> statement, then the variables will be in alphabetic order.
>
> Nat Wooding
>
>
> Data One ;
> Input a b d e g ;
> Cards ;
> 1 2 3 4 5
> 1 2 3 4 5
> 1 2 3 4 5
> 1 2 3 4 5
> 1 2 3 4 5
> ;
> Run ;
>
> Data Need ;
> Retain a b c d e f g 99 ;** new location;
> Set One ;
>
> Run ;
>
> Proc Print
> Data = Need ;
> Run ;
>
|