BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi

I am using proc report code to generate report output.
I create a stored process and run that stored process through browser,i am able to see the output properly but when i print the output through the browser to the dot matrix printer.The printout has some junk characters wherever i have used line in the code.
for example:-
code:
............
line @2 'report output';
..........

report output in the printout:-

.............
...................
@@@@@@@@@@rep@ruu@@
.........
.........
Is there any solution? Message was edited by: Sunil Gandhi
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Generally, the LINE syntax (such as @2) does not work for ODS HTML, ODS PDF or ODS RTF the way you expect. So, you're better off not using that syntax.

However, when you run a stored process and return the results to the browser, by the time you print (from the browser) SAS is out of the picture. Once the output is rendered by the browser, it is the browser interface to the printer that is in control.

If you open your HTML output (from the stored process) in Notepad, you can see whether SAS wrote the HTML commands correctly. If you are returning a TXT file and are opening that TXT file in the browser, then you are still dealing with the browser interface to the printer, but you might want to be sure that your stored process has placed <pre> and </pre> around the TXT output -- since that is the HTML method to tell the browser NOT to mess with the "preformatted" TXT file or preformatted TXT lines.

This is probably a question that is best answered by Tech Support, because they can look at your stored process and try to replicate the printing problem. Although, it might be hard to find a dot matrix printer.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 530 views
  • 0 likes
  • 2 in conversation