tell me about use of arrays in sas

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


Please Help Members By Posting Answers For Below Questions

what are _numeric_ and _character_ and what do they do? : Sas programming

678


What is PDV?

729


what can you learn from the sas log when debugging? : Sas programming

612


How do you add a number to a macro variable? : sas-macro

545


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

585






What is SAS informats?

638


What is maximum number of rows and cols can be handled in SAS?

857


Mention few capabilities of sas framework.

696


do you prefer proc report or proc tabulate? Why? : Sas programming

577


What is the order of application for output data set options, input data set options and SAS statements?

1087


What is the purpose of trailing @ and @@? How do you use them?

615


What are the different operating system platforms in which we can use sas? : sas-grid-administration

594


what is the use of proc sql? : Sas programming

598


In sas, what are the areas that you are most interested in? : sas-grid-administration

642


Name validation tools used in SAS

698