Or allow the following that might do a similar thing.
proc printto print=log; run;
The idea is that some procedure output that you make in SAS is "administrative". Like output to the log, a proc print can create information dealing with the SAS environment or files sizes and file dates, for example. This can inform users for debugging purposes or for showing the state of the SAS system at the time of running just like log output. If this information works like log information why not allowed users to send the text stream to the log.
This can be done in batch mode,
https://communities.sas.com/t5/Base-SAS-Programming/Piping-output-listing-to-log/m-p/413020#M101047