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
Differentiate between sas functions and sas procedures.
Explain what Proc glm does?
How to specify variables to be processed by the freq procedure?
Differentiate between format and informat? : sas-grid-administration
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro
What do the put and input function do?
What’s the difference between var b1 – b3 and var b1 — b3?
How would you identify a macro variable?
How to create an external dataset with sas code?
Tell me about % include and % eval? : sas-macro
how sas deals with business intelligence? : Sas-bi
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
What is the purpose of _character_ and _numeric_?
What is maximum number of rows and cols can be handled in SAS?
what is sas enterprise intelligence architecture? : Sas-bi