When you are testing for mutually exclusive conditions, use IF-THEN/ELSE statements rather than a series of IF statements.
Example– INEFFICIENTDATA ONE;
This code looks straightforward and will get the job done, but there is a large amount of totally unnecessary work being done. The next method shown is definitely the preferred method hands-down — no debating.
Example – EFFICIENTDATA ONE;
In the inefficient example, all the IF statements have to be executed, even if a previous IF statement was true. In the efficient example, as soon as an IF statement is true, no subsequent ELSE statements are executed.
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.