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

Name and describe three SAS functions that you have used, if any?

4 Answers   Accenture,


what is the difference between proc means and proc tabulate?

3 Answers   Cognizant, CTS,


Intern stastical programmer written test

0 Answers  


how would you create multiple observations from a single observation? : Sas programming

0 Answers  


Explain what is data step?

0 Answers  






Approximately what date is represented by the SAS date value of 730?

0 Answers  


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

0 Answers  


Compare sas with other data analytics tools.

0 Answers  


The below code we are using for creating more than one macro variables in proc sql using into clause. How we can use same code to create macro variables vara, varb, varc instead of var1, var2, var3.? proc sql noprint; select count(distinct(patient)) into :var1 - :var3 from dataset1 group by trtreg1c ; quit;

1 Answers   Accenture,


how to read character value without using substr function in sas ?

3 Answers  


what is enterprise guide? What is the use of it? : Sas programming

0 Answers  


What is shift table? have you ever created shift that?

2 Answers   Accenture, Clinical Research, Quintiles,


Categories