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
what are 5 ways to perform a table lookup in sas? : Sas-administrator
How do you control the number of observations and/or variables read or written?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
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
for whom is sas data integration studio designed? : Sas-di
Explain translate function?
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
How do dates work in SAS data?
Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager
What are the parameters of scan function?
What are types of transport files?
How can sas program be validated?
How to include or exclude specific variables in a data set?
Hi, If anyone has base SAS certification dumps, please share.
How would you define the end of a macro? : sas-macro