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 are _numeric_ and _character_ and what do they do? : Sas programming
What is PDV?
what can you learn from the sas log when debugging? : Sas programming
How do you add a number to a macro variable? : sas-macro
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
What is SAS informats?
What is maximum number of rows and cols can be handled in SAS?
Mention few capabilities of sas framework.
do you prefer proc report or proc tabulate? Why? : Sas programming
What is the order of application for output data set options, input data set options and SAS statements?
What is the purpose of trailing @ and @@? How do you use them?
What are the different operating system platforms in which we can use sas? : sas-grid-administration
what is the use of proc sql? : Sas programming
In sas, what are the areas that you are most interested in? : sas-grid-administration
Name validation tools used in SAS