Christineeve
Programmer
Hi,
I'm new to SAS coming over from the Visual Basic/.Net side of the house here. I'm not SAS programmer, yet, I'm currently a SAS Cut-n-Paster. I have some SAS PDFs and they cover SUM and MEANS but using these handouts, I can't get my answer. Your help would be appreciated.
I am trying to take two datasets that I've created and sum the obeservations. For example:
Two Data Sets A and A_1, both have one observation of a count.
Count
1000
4000
I want to create a new data set with the sum. Thus,
Table C
5000
Here is my "code".
Any help would be appreciated.
I'm new to SAS coming over from the Visual Basic/.Net side of the house here. I'm not SAS programmer, yet, I'm currently a SAS Cut-n-Paster. I have some SAS PDFs and they cover SUM and MEANS but using these handouts, I can't get my answer. Your help would be appreciated.
I am trying to take two datasets that I've created and sum the obeservations. For example:
Two Data Sets A and A_1, both have one observation of a count.
Count
1000
4000
I want to create a new data set with the sum. Thus,
Table C
5000
Here is my "code".
Code:
libname rwork slibref=work server=xxsas;
DM 'Clear log';
rsubmit;
proc sql;
create table DBI_b_Union_PaP as
select *
from Dbi_b_wf as Pap
UNION
select *
from Dbi_b_d001p as Pap
group by 1
;
quit;
endrsubmit;
rsubmit;
Proc SQL;
create table sDBI_b_Union_PaP as
select count
from Dbi_b_union_pap
group by count;
quit;
endrsubmit;
Any help would be appreciated.