how to add distinctly var variable values ex..
Data a;
input var;
datalines;
0
1
2
3
-1
-2
-3
;
run;
adding all +ve value in one varibale n do the same for -ve
too
Answer Posted / mahesh babu b
data test1;
set a;
if find(var,'-') >0 then b=var;
else c=var;
run;
Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
describe the interaction table in sas di? : Sas-di
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
it will become easy if uuu provide website linkssss and list of consultanciessssss
What is the difference between nodupkey and nodup options?
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
What is the difference between input and infile statement?
What does the RUN statement do?
what is the function of catx syntax? : Sas-administrator
what is the primary data source for the wrs? : Sas-bi
What do the PUT and INPUT functions do?
Mention how to limit decimal places for the variable using proc means?
Do you know the features of sas?
What are the features of SAS?
explain the difference between proc means and proc summary?