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

how does sas handle missing values in formats? : Sas programming

1078


How to test the debugging in sas?

1110


Name any two sas spawners? : sas-grid-administration

980


What do the put and input function do?

1002


Describe the function and untility of the most difficult SAS macro that you have written.

2054


What are the different types of sas functions?

1187


what versions of sas have you used (on which platforms)? : Sas programming

1003


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1236


what is sas metadata repository? : Sas-bi

1052


Differentiate between format and informat? : sas-grid-administration

1010


what is program data vector? : Sas-administrator

1012


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2655


What is the general format of function in sas? : sas-grid-administration

917


How does proc sql work?

1026


how would you create multiple observations from a single observation? : Sas programming

952