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 |
What do the SAS log messages "numeric values have been converted to character" mean?
SAS using companies in chennai
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
What can be the size of largest dataset in SAS?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
what has been your most common programming mistake? : Sas programming
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 order and group variable in proc report?
what is the use of proc sql? : Sas programming
What does PROC print, and PROC contents do?
Name some categories in sas 9? : sas-grid-administration
what are 5 ways to perform a table lookup in sas? : Sas-administrator