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?
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
> 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?
> 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.
> data have;
> input num;
> data have2;
> input num2;
> data need;
> do _point=1 to _nobs;
> set have have2 nobs=_nobs point=_point;
> proc print data=need;
> data need2;
> set have have2;
> proc print data=need2;