The PUT statement writes lines of text to the SAS log.
However, the SAS log is not usually a good destination for a formal
report because it also contains the source statements for the program
and messages from SAS.
The simplest destination
for a printed report is the SAS output file, which is the same place
SAS writes output from procedures. SAS automatically defines various
characteristics such as page numbers for the procedure output file,
and you can take advantage of them instead of defining all the characteristics
yourself.
To route lines to the
procedure output file, use the FILE statement. The FILE statement
has the following form:
PRINT is a reserved fileref that ...