|
proc print may be used to print messages and debugging info.
It can print the contents of variables and/or
data fields to a file or to standard error.
It is mainly useful for displaying or exporting information
pertaining to outlier cases and for debugging a script.
Unless the outfile attribute is specified, information is
printed to the file/stream controlled by the -diagfile
command line option.
This proc is deprecatedThis proc is now deprecated and may be removed from future releases. The #write / #endwrite script directives provide similar functionality.Attributeslabel text
select select expression
print text
outfile filename
outmode w | a
Variables that are set by proc printNSELECTED is set to the number of records selected. Thus proc print may be used to count number of records meeting a certain criteria.Example#set TODAY = $todaysdate() #proc print label: Outliers (run on @TODAY) select: @@3 > 300 print: @@1 @@2 had a score of @@3 |
![]() data display engine Copyright Steve Grubb ![]() |