Answer Posted / vimal raj
SAS Array's main functionality is
when a same action has to be performed repeatedly for n number of similar variables, it is ideal to use array which will simplify the sas program and gives the efficient performance in running and also the look n feel is better
data readin;
set outdata;
array Q(20) Q1-Q20;
do i= 1 to 20;
if Q(i) = 6 then Q(i)= .;
end;
run;
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
what is factor analysis? : Sas-administrator
How many data types are there in SAS?
List down the reasons for choosing sas over other data analytics tools.
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
How we can call macros with in data step? : sas-macro
For clinical entire study how many tables will create approx?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
what is star schema? : Sas-di
Differentiate between proc means and proc summary.
What are the automatic variables for macro? : sas-macro
How do you test for missing values?
Mention what is the difference between nodupkey and nodup options?
explain the difference between proc means and proc summary?
What is interleaving in SAS?
How many ways to overcome a missing values???