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

how can you sort the dataset having millions of OBS(instead of sort procedure?

4 Answers   EXL,


What is your weekness? I am confuse what to say about this question. so can u give some answer which can be yur strenght.

1 Answers   Cipla,


Can you continue to write code while the rest of the people on the floor where you work have a noisy party to which you were not invited?

2 Answers   Oracle,


Baseline definition in your study

3 Answers   Accenture, Quintiles,


1.we can execute a macro with in a macro,by using call symput and symget can any one give me one example? 2.We can create the macro variables by using %let,%do,macro parameters,INTO clause in proc sql and call symput, can any one give me example to create macro variable with INTO clause and call symput? 3.

1 Answers  






Which is the best training Institute for SAS Business Intelligence course?

6 Answers  


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

0 Answers  


How do you define proc in sas? : sas-grid-administration

0 Answers  


Explain what is SAS informats?

0 Answers  


What is the difference between proportion and average?

0 Answers   KPMG,


is data integration and etl programming is same? : Sas-di

0 Answers  


How can a SAS WEB REPORT STUDIO USER identify which report tabs they have been permitted without entering the SAS WEB REPORT STUDIO

2 Answers   TCS,


Categories