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

WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?

3 Answers   IBM, Zensar,


Best trainer in hyderabad for sas banking.if any one have details pls provide contact details.

1 Answers  


What is the difference between the proc sql and data step?

0 Answers  


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


How would you code a merge that will keep only the observations that have matches from both sets?

5 Answers  






In SAS how to read the variable values having different formats. eg:mar99,mar1999 (in a single variable)

8 Answers   GSK GlaxoSmithKline,


What is the difference between %put and symbolgen? : sas-macro

0 Answers  


what is option year cuttoff in sas

2 Answers   L&T,


What is difference between Global n Local Macro Variables..?

6 Answers   TCS,


Can you explain the process of calendar?

0 Answers  


What is LOGICAL VARIABLES in SAS.And how it can be used..Can anyone support..???

3 Answers  


Differentiate between proc means and proc summary.

0 Answers  


Categories