|Date: ||Thu, 7 Dec 2006 16:28:26 +0000|
|Reply-To: ||toby dunn <tobydunn@HOTMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||toby dunn <tobydunn@HOTMAIL.COM>|
|Subject: ||Re: sorting problem|
|Content-Type: ||text/plain; format=flowed|
Why would it grip at you? All the code says is if there is a variable(s)
that start with B then retain them. It does not say there must be variables
that start with B. So if they are there great and fi they arent then great
too. Hey its a win-win situation.
Quickly, bring me a beaker of wine, so that I may wet my mind and say
Wise people, even though all laws were abolished, would still lead the same
You should not decide until you have heard what both have to say.
From: Nat Wooding <Nathaniel_Wooding@DOM.COM>
Subject: Re: sorting problem
Date: Thu, 7 Dec 2006 11:24:44 -0500
Now that does make sense. However, SAS does not gripe at us which I would
12/07/2006 11:22 cc
Re: sorting problem
On 12/7/06, Nat Wooding <Nathaniel_Wooding@dom.com> wrote:
> A small addendum to this tread:
> Moreover, while doing a little playing, I may have stumbled on a small
> Consider the following code:
> data a;
> set sashelp.class(keep=name obs=3);
> if _n_=1 then do;
> newvar = 99;
> xvar= 191;
> retain a b : 22 ;
> proc print;
> Now, as I count variables, there should be 5 in the output data set:
> newvar,xvar, a and b. However, when I run this on WinXP, 9.1, I get only
> -- there is no variable called "b".
> The log reads:
> NOTE: There were 3 observations read from the data set SASHELP.CLASS.
> NOTE: The data set WORK.A has 3 observations and 4 variables
Hold the phone. The colon "says" retain variables that begin with B.
The colon implies they already exist. You cannot create variables
this way. Seems correct to me.
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.
Get free, personalized commercial-free online radio with MSN Radio powered
by Pandora http://radio.msn.com/?icid=T002MSN03A07001