%if %SYSFUNC(EXIST(&a))=1 %then %do;
proc append base=&a data=&b force;
----- Original Message ----
From: Alon <akadas@GMAIL.COM>
Sent: Thursday, April 5, 2007 2:23:00 PM
Subject: Appending to a master dataset
I have been using the following macro to append before:
set &a &b;
The reason why I critic this method is that it reads in both datasets
rather than just reading dataset &b and adding observations to the end
of dataset &a, and being that &a is the master dataset it can get very
large and I would like to avoid this. If I am wrong here and SAS is
smarter than I think then please correct my assumptions.
In addition I want to give this macro some error handling. Meaning,
say &a never existed, if that is the case then:
How can I go about this.
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.