Previous Page | Next Page

Writing Lines to the SAS Log or to an Output File

Understanding the PUT Statement

When you create output using the DATA step, you can customize that output by using the PUT statement to write text to the SAS log or to another output file. The PUT statement has the following form:

PUT<variable<format>><'character-string'>;

where

variable

names the variable that you want to write.

format

specifies a format to use when you write variable values.

'character-string'

specifies a string of text to write. Be sure to enclose the string in quotation marks.

Previous Page | Next Page | Top of Page