Date: Fri, 23 Oct 2009 15:13:15 +0200
Reply-To: Daniel Fernández <fdezdan@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Daniel Fernández <fdezdan@GMAIL.COM>
Subject: Re: How can we stop the "do nothing data step"?
In-Reply-To: <966B4B225F74914599E617416969BF1A45950EF05C@DOM-MBX02.mbu.ad.dominionnet.com>
Content-Type: text/plain; charset=ISO-8859-1
hi, I am not sure what you want and you mean with 'SAS programming standards'.
Perhaps the guy/gal can code:
dm 'vt perm.need';
Daniel Fernandez.
Barcelona
2009/10/23 Nathaniel Wooding <nathaniel.wooding@dom.com>:
> Opinion??
>
>
> Yes. The guy/gal got in the habit of doing this way back when they first started learning SAS and did not realize that they could simply reference Perm.Need in the Proc.
>
> At least it does not sound like they write
>
> Data need;
> Set perm.need;
> Run;
> Data need1;
> Set need;
> Run;
> Proc Print;
> Run ;
> Etc.
>
> Nat
>
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Data _null_;
> Sent: Friday, October 23, 2009 8:13 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: How can we stop the "do nothing data step"?
>
> I'm working on a project and one of the programmers has a macro that I
> can use to compute the magic number. "The documentation is in the
> header so just open it up etc.".
>
> I open the program and read the header, looking at the parameters etc.
> and I scroll down to the macro definition and the very first thing I
> see is a "do nothing data step"
>
> data need;
> set perm.need;
> run;
>
> No subset(variables or obs), no sort, no new variables, no index
> creation, no nothing. The data set is used a bit further down in a
> PROC SQL and then it is sorted/nodupkey and the variables are subset,
> but "on the wrong side". That's another story so don't get me
> started.
>
> In fact some of my fellow team members do this quite often, which is
> perplexing to me because my client claims to very particular about
> "SAS programming standards".
>
> Opinions?
> 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.
>
|