Help using Base SAS procedures

Default Print Destination

Reply
Super Contributor
Posts: 358

Default Print Destination

Hi All:

Someone asked me this question today and I was unable to answer him.

How do you automatically print SAS procedure output in a non-Windowing environment?

I know that in batch (I'm most familiar with z/OS with JES2) you simply point the output to SYSOUT=* (or whatever your print class) in the JCL and the output magically ends up on a printer.

This user has converted a z/OS batch job to run on a SAS server and now wants the output (reports) to be on the printer when they come in in the morning. The job gets auto scheduled to run overnight.

My first thought was to create a file with the report in it then issue a UNIX or DOS print command from within the SAS code, but that seems to be the long way to do this.

And ideas?
Super Contributor
Super Contributor
Posts: 3,174

Re: Default Print Destination

Started here with a Google advanced search:

printing sas output site:sas.com

http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a002261792.htm


That discussion led me to this search:

routing printer output windows companion site:sas.com


Which led me (for Windows OS) to this document and discussion sections:

http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/printing.htm


http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/win-sysop-sysprint.htm


http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/procoutput.htm


Scott Barry
SBBWorks, Inc.
SAS Super FREQ
Posts: 8,740

Re: Default Print Destination

Hi:
For Unix printing, refer to this document:
http://support.sas.com/techsup/technote/ts655.pdf (see specifically page 25/26 with examples of FILENAME and PRINTERPATH)
or this older document:
http://support.sas.com/techsup/technote/ts432/ts432.html
or
information about universal printing in z/OS:
http://support.sas.com/documentation/cdl/en/hosto390/61886/HTML/default/a002156071.htm
or
http://support.sas.com/documentation/cdl/en/hostwin/61924/PDF/default/hostwin.pdf (look at chapter 6 )

Or, if you are using ODS, then you might investigate ODS PRINTER with the PRINTER= option to route output directly to a printer:
http://support.sas.com/kb/23/413.html
http://support.sas.com/kb/23/414.html

cynthia
Ask a Question
Discussion stats
  • 2 replies
  • 111 views
  • 0 likes
  • 3 in conversation