In cases where you only want to process selected records from a raw data file, you can make your programs more efficient by first reading only the variable(s) necessary to make the decision about whether or not you want to include the current record. The following example illustrates this concept:
Example – INEFFICIENTDATA SUBSET;
A better approach is to avoid reading all the variables into the PDV unless you plan to output that observation to the data set being created.The following program does just that.
Example – EFFICIENTDATA SUBSET;
Use the trailing to "hold the line" so that you can test the value of GENDER with a subsetting IF statement.If the value is not 'M'you can avoid the unnecessary I/O involved in reading all the other variables when gender is not an'M'.
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.