LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 15 Jul 2011 16:04:19 -0700
Reply-To:     "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Subject:      Re: very interesting! set one two ..., what's make the difference?
In-Reply-To:  <000101cc4333$81b6b690$852423b0$@com>
Content-Type: text/plain; charset="us-ascii"

Well, have2 has at least one addition variable per observation.

But if you are not willing to take the time to ask a specific question, don't be surprised when you don't get the answer you need.

> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of bbser > 2009 > Sent: Friday, July 15, 2011 2:10 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: very interesting! set one two ..., what's make the difference? > > Greetings! > > Could you please run the code below and explain what's make the difference > between the printouts of the data sets need and need2? > I ever expected they were the same since I thought the two data steps > generating them were the same in effects. > Thank you. > > Max > (Maaxx) > ================ > > data have; > input num; > cards; > 1 > 2 > 3 > ; > > data have2; > input num2; > cards; > 4 > 5 > ; > > data need; > do _point=1 to _nobs; > set have have2 nobs=_nobs point=_point; > output; > end; > stop; > run; > proc print data=need; > run; > > data need2; > set have have2; > run; > > proc print data=need2; > run;


Back to: Top of message | Previous page | Main SAS-L page