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'>;
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.
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.