tell me about use of arrays in sas



tell me about use of arrays in sas..

Answer / 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

More SAS Interview Questions

Why and when do you use proc sql?

0 Answers  


How to import the Zip files into SAS? If it is possible in SAS? If it is posible write the code...

7 Answers  


What is the size of PDV?

2 Answers   L&T,


what is intially documentation in sas?

1 Answers   Accenture,


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

0 Answers  






here is a string like chq.2312244%4452- from that i want only special characters in a column. dont use compress. bcoz i have 1.2 billion of records.i want another process to find the values instant from the data.

2 Answers   Cap Gemini, L&T,


Describe the ways in which you can create a macro variable?

0 Answers  


how can get the first and last observations in a dataset using Proc SQl?

4 Answers   Satyam,


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

0 Answers  


How to select the observations randomly from a SAS dataset

7 Answers   NTT Data,


Explain translate function?

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  


Categories