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 (April 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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.


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