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 are the ways in which macro variables can be created in sas programming?
create macros---you have 365 number of data and you need to merge it throw the macros,,,,,, data file1; input a @@; cards; 1 2 3 4 ; run; data file2; input a @@; cards; 5 6 7 8 ; run; data file3; input a @@; cards; 9 10 11 12 ; run;data file4; input a @@; cards; 13 14 15 16 ; run;
Describe the ways in which you can create macro variables? : sas-macro
what is sas data set?
how to handle in stream data containing semicolon in it?
1 new york 7,262,700 2 los angeles 3,259,340 3 philadelphia 1,642,900 how to read the above data using input statement consider the above data is in txt format externally u have to use infile and input statement.
Can Some one Explain How the Datasets from SAS can be loaded in to the MVS OS?
what is the difference between sas and other datawarehousing languages?what are the advantages of sas over them?
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table?
What will calendar procedure do?
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?