Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if i having variables named a b c d e f ,how to find total of
each variable ????give syntax...??

Answer Posted / anik chatterjee

The last answer is right but if all the values are missing
then sum function will give a note in log. Best way to add
0 with all value. Hence if all value is missing then total
would be 0 and no note will be there.

proc sql;
create table SUM as
select sum(a) as sum_a,
sum(b,0) as sum_b,
sum(c,0) as sum_c,
sum(d,0) as sum_d,
sum(e,0) as sum_e,
sum(f,0) as sum_f
from input_dataset_name;
quit;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is hierarchy flattening? : Sas-di

1071


what is business intelligence? : Sas-bi

1057


How are numeric and character missing values represented internally?

1651


What are the scrubbing procedures in sas?

998


what is operational data and operational system? : Sas-di

1102


Give some examples where proc report’s defaults are same as proc print’s defaults?

1102


What does proc print, and proc contents are used for?

1124


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1264


Of all your work, where have you been the most successful?

4662


How to read an input file in sas?

1131


Explain the use of proc print and proc contents?

955


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1745


In SAS explain which statement does not perform automatic conversions in comparisons?

1308


what is slowly changing dimension? : Sas-di

1116


What is the difference between input and infile statement?

1162