Tuesday, April 5, 2011

THE _NULL_ DATA STEP

The _NULL_ DATA step is a specialized case of the DATA step. When you use the _NULL_ key word, the DATA statement processes all statements within the DATA step without data set creation.
Some of the uses of DATA _NULL_ are:
***To create customized reports with and without ODS. The reports can be routed to the Output window, directly to printer, to an external file, or any destination that can be defined by the FILE and FILENAME statement.
***To create macro variables based on values obtained from an input SAS data set or external file.
***To create ASCII data (flat) files for importing into MS Excel MS Access or other programs and databases.
***To execute special functions or call routines available within the DATA step, such as CALL EXECUTE.

No comments: