Programming with Conditional Statements
BSA570
Learning Team D
data estimate;
infile ‘/home/tnezell780/sasuser.v94/CobbcountEarn2.csv’ dlm = ‘,’ firstobs=2;
input Gender :$13.
EarningCategory :$20.
Individuals ;
if EarningCategory >= 49999;
run;
PROC SORT data =estimate;
by gender;
run;
Proc print data = estimate;
by gender;
title ‘Cobb County Population Totals By Gender’;
var gender Individuals;
sum individuals;
run;
Data Table;
set estimate;
Run;
proc tabulate data=Table order=formatted ;
class Gender EarningCategory;
Var individuals;
table EarningCategory, ((sum(Individuals))/100);
run;
/* OsceolacountEarn2.csv */
data estimate;
infile ‘/home/tnezell780/sasuser.v94/OsceolacountEarn2.csv’ dlm = ‘,’ firstobs=2;
input Gender :$13.
EarningCategory :$20.
Individuals ;
if EarningCategory >= 49999;
run;
PROC SORT data =estimate;
by gender;
run;
Proc print data = estimate;
by gender;
title ‘Osceola County Population Totals By Gender’;
var gender Individuals;
sum individuals;
run;
/* Lake County*/
data estimate;
infile ‘/home/tnezell780/sasuser.v94/LakecountEarn2.csv’ dlm = ‘,’ firstobs=2;
input Gender :$13.
EarningCategory :$20.
Individuals ;
if EarningCategory >= 49999;
run;
PROC SORT data =estimate;
by gender;
run;
Proc print data = estimate;
by gender;
title ‘Lake County Population Totals By Gender’;
var gender Individuals;
sum individuals;
run;
The post Proc print data = estimate; by gender; title ‘Cobb County Population Totals By Gender’; appeared first on My Assignment Tutor.
-
- Assignment status: Resolved by our Writing Team
- Source@PrimeWritersBay.com
Comments
Post a Comment