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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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