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 function CATX syntax does?
Are you involved in writing the inferential analysis plan? Tables specifications?
What is the difference between reading data from an external file and reading data from an existing data set?
What is the difference between order and group variable in proc report?
explain the difference between proc means and proc summary?
Approximately what date is represented by the SAS date value of 730?
Can you explain the process of calendar?
How to create a permanent sas data set?
Why and when do you use proc sql?
how do you test for missing values? : Sas programming
How many data types are there in SAS?
What is the command used to find missing values?
Explain the main difference between the sas procedures and functions? : Sas-administrator
which features do you use to check the data validations and errors? : Sas-administrator
What is the order of application for output data set options, input data set options and SAS statements?