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

Which are SAS Windows Clients & SAS Java Clients

3 Answers   TCS,


how to assign a macro value to a variable?

8 Answers   CitiGroup,


DATA ABC; INPUT TDATE DATE9. AVG; CARDS; 18APR2008 150.00 19APR2008 167.00 20APR2008 123.00 21APR2008 145.00 ; RUN HOW CAN I FIND THE DIFFERENCE BETWEEN AVG OF 18APR2008 ANF 21APR2008?? IF ANY ONE GETS IT PLS TRY TO POST IT.

8 Answers   Verinon Technology Solutions,


What is the order of evaluation of the comparison operators: + - * /** ()?

3 Answers   Quintiles,


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

0 Answers  






Did you used proc lifetest? when?

2 Answers   Accenture, Parexel, Quintiles,


What are the difficulties u faced while doing vital signs table or dataset?

0 Answers  


What SAS statements would you code to read an external raw data file to a DATA step?

6 Answers   Accenture,


What can be the size of largest dataset in SAS?

0 Answers  


List out some key concept of SAS

0 Answers  


Have you ever used the SAS Debugger?

0 Answers   Quintiles,


what is the diff b/w verification validation in sas

3 Answers   SAS,


Categories