Hi Team,
Can anyone tell me how to save data of proc append. Like i have below mentioned data
data app;
input amt name $ age;
cards;
1000 abc 21
2000 def 22
3000 ghi 23
4000 jkl 24
;
run;
data app1;
input name $ age bonus;
cards;
jkl 24 1000
mno 25 2000
;
run;
then i run proc appned function like below.
proc append base=app data=app1 force;
run; proc print; run;
i want to save the output in my library or in work library. Its not for proc append only. if i have querires of proc tabulate then how can i save the data for these procedures.
The data is in the BASE table. If you want it in a library, assign it to a library or use PROC COPY/DATASETS to move it.
Proc datasets lib=work;
copy in=work out=myLib;
select app;
Run;quit;
Proc append always saves the output(base dataset) in either work library or if you have used any library reference then it will save the append output. Do you want it to be save it separately which really amkes little sense,you can use copy the dataset using
proc dataset.
Also use can use ods statements to save the output of sas procedures in a dataset.
http://www2.sas.com/proceedings/forum2008/086-2008.pdf
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.