![]() Chapter Contents |
![]() Previous |
![]() Next |
Using the Output Delivery System in the DATA Step |
FILE PRINT <ODS<=(ODS-option(s))>><overflow-control><N=number>; |
PUT <specification(s)><_ODS_><@|@@> ; |
The FILE and PUT statements interact in the following way:
The ODS option in the FILE statement defines the structure of the data component that holds the results of the DATA step.
The _ODS_ option in the PUT statement writes values (as specified by the ODS option in the FILE statement) into a special buffer. This buffer is written to the data component.
The ODS option in the FILE statement binds the data component to a table definition to produce an output object. ODS sends this object to all open ODS destinations, each of which formats the object appropriately.
The ODS destinations are controlled by the global ODS statements. You can use an existing table definition or create your own with PROC TEMPLATE (see The TEMPLATE Procedure).
This section provides information on using the Output Delivery System from the DATA step. For conceptual information on how ODS works, see Basic Concepts of the Output Delivery System. For information on the ODS statements, see The ODS Statements.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.