![]() Chapter Contents |
![]() Previous |
![]() Next |
| Using the Output Delivery System in the DATA Step |
| PUT <specification(s)><_ODS_><@|@@>; |
| Arguments |
| <ods-pointer-control>variable |
| Featured in: | Using a Simple User-Defined Definition |
| See also: | Column Pointer Controls and ODS and Line Pointer Controls |
| Options |
The PUT statement writes this buffer to the data component.
| Default: | If you do not use @ or @@, each PUT statement in a DATA step writes a new line to the buffer. |
| Column Pointer Controls and ODS |
Column pointer controls have the following general forms:
| @ods-column |
| +ods-column |
| @'column-name' |
| Range: | If ods-column is a number, it must be an integer. If ods-column is a variable or an expression, it does not have to be an integer. If it is not an integer, SAS truncates the decimal portion and uses only the integer value. |
| Tip: | If ods-column is greater than 0, the pointer moves to the right. If ods-column is less than 0, the pointer moves to the left. If ods-column is equal to 0, the pointer does not move. |
| See also: | When the Pointer Goes Past the End of a Line |
| Line Pointer Controls |
| #line |
| / |
| Range: | If line is a number, it must be an integer. If line is a variable or an expression, it does not have to be an integer. If it is not an integer, SAS truncates the decimal portion and uses only the integer value. |
| Featured in: | Using a Simple User-Defined Definition |
| When the Pointer Goes Past the End of a Line |
Using pointer controls and trailing @ or double trailing @, you may inadvertently position the pointer beyond the last column. You control how SAS handles this situation with options in the FILE statement. (See the discussion of overflow-control.)
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.