This hint is a bit subtle and is important only when you want to squeeze the last ounce of efficiency out of your system. This example uses the logic of the previous efficient example. As a matter of fact, the following inefficient code is exactly the same as the previous efficient code. Read on.
Example– INEFFICIENTDATA ONE;
If you know something about the contents of your data set, place the IF statements in decreasing order of probability of being true. Thus, if most of your subjects are in the 30-to-40 age group,followed by the greater-than-40 group, you should rearrange the IF-THEN/ELSE statements as follows:
Example– EFFICIENTDATA ONE;
The result here is that for most of the observations read in, the DATA step would stop processing after the first IF statement.The next largest group of observations would only need to process two IF statements, and so on. Only the smallest group of observations would have to process the entire set of IF statements.
SAS Programming Related Tutorials
|SASS (Syntactically Awesome Style sheets) Tutorial||R Programming language Tutorial|
SAS Programming Related Interview Questions
|Logistics Interview Questions||SAS Programming,SQL server Interview Questions|
|Clinical SAS Interview Questions||SASS (Syntactically Awesome Style sheets) Interview Questions|
|SQL Server Analysis Services (SSAS) Interview Questions||R Programming language Interview Questions|
|SAS DI Interview Questions||Advanced SAS Interview Questions|
|Base Sas Interview Questions||SAS Macro Interview Questions|
|Clinical Data Management Interview Questions|
Sas Programming Tutorial
Input And Infile
Set, Merge, And Update
Table Lookup Tools
Proc Means And Proc Uimivariate
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.