| Date: | Fri, 6 Apr 2007 10:14:34 -0700 |
| Reply-To: | Sasi <pl.sasikumar@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Sasi <pl.sasikumar@GMAIL.COM> |
| Organization: | http://groups.google.com |
| Subject: | Re: Appending to a master dataset |
|
| In-Reply-To: | <N7sRh.1$Mf6.102501@news.sisna.com> |
| Content-Type: | text/plain; charset="iso-8859-1" |
|---|
Hi,
While using append procedure u may miss the variables that are not
present in the base dataset.
But while using 'set a b;' stmt u can hold all the variables that are
present in both the datasets.
data a;
s = 1;
r = 2;
run;
data b;
s= 3;
t = 4;
run;
/********* Using Append Procedure************/
proc append base = a data = b force;
run;
proc print data = a;
run;
/*********** Using datastep ***********/
data a;
set a b;
run;
proc print data = a;
run;
Thanks,
Sasikumar,
Quartesian.
|