BookmarkSubscribeRSS Feed
OS2Rules
Obsidian | Level 7
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?
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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.
Cynthia_sas
SAS Super FREQ
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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 937 views
  • 0 likes
  • 3 in conversation