Date: Wed, 10 Sep 2003 13:10:50 +0200
Reply-To: KrzysOPoranku <KrzysOPoranku@INTERIA.PL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: KrzysOPoranku <KrzysOPoranku@INTERIA.PL>
Organization: tp.internet - http://www.tpi.pl/
Subject: Re: merge
Content-Type: text/plain; charset=us-ascii; format=flowed
I've test Jim's solution but i got one more obserwation in output data:
417 data a;
418 i=1;output;
419 i=2;output;
420 run;
NOTE: The data set WORK.A has 2 observations and 1 variables.
421 data b;
422 x=3;
423 run;
NOTE: The data set WORK.B has 1 observations and 1 variables.
425 DATA C;
426 IF _N_ EQ 1 THEN MERGE A B;
427 ELSE SET A;
428 RUN;
NOTE: There were 2 observations read from the data set WORK.A.
NOTE: There were 1 observations read from the data set WORK.B.
NOTE: There were 2 observations read from the data set WORK.A.
NOTE: The data set WORK.C has 3 observations and 2 variables.
I think in this case you should use POINT= option or sth else ;-).
KrzysOPoranku