Date: Wed, 24 Nov 2010 12:57:33 -0500
Reply-To: Nat Wooding <nathani@VERIZON.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <nathani@VERIZON.NET>
Subject: Re: If VARIABLE Does Not Exist Then Do...
In-Reply-To: <BLU152-w16F2CF4AB1178E1E040A28DE3F0@phx.gbl>
Content-Type: text/plain; charset="US-ASCII"
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 ;
|