· What are some good SAS programming practices for
processing very large data sets?
Answer Posted / pricil kurian
1) Compressing dataset
2) Using where instead of if as subsetting conditions
3) Deleting the temporary datasets at the end of the program
4) If we use "if..else ..if conditions"..use most occuring
situations first
5)Use keep and drop appropriately to avoid the unneceesary
variable
6).Creattion of index variable
7)Use of array statement
8)Create one byte required numeric variable which we don't
use for calcualting process as charcater..Using this this
variable need 1 byte where numeric variable's minimum
length is 3.
9)Minimize the CPU time that SAS uses by executing the
minimum number of statements in the most efficient
order.
10)Use SQL for code simplification. A single SQL statement
is generally easier to code and understand than a
long series of SORT and DATA steps.
11)Use of data _null_; when we don't need to output into a
new dataset.
12)Use macros for redundant code.
13)When data sets are large and unsorted, the SQL inner
join may beter than SORT and MERGE.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the difference between reading data from an external file and reading data from an existing data set?
What is interleaving in SAS?
what are _numeric_ and _character_ and what do they do? : Sas programming
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
How would you invoke a macro? : sas-macro
Explain the main difference between the sas procedures and functions? : Sas-administrator
how do you pull data from equifax?tell me the process?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
what is the difference between infile and input? : Sas-administrator
How sas treats the dsd delimiters?
what other sas products have you used and consider yourself proficient in using? : Sas programming
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
Explain translate function?
Mention few capabilities of sas framework.