LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 18 Jun 1998 08:06:54 GMT
Reply-To:   BRogers@MY-DEJANEWS.COM
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   BRogers@MY-DEJANEWS.COM
Organization:   Deja News - The Leader in Internet Discussion
Subject:   Re: Printer port in SCL Proc Printto

In article <6m93ht$t27$1@news.tamu.edu>, R-Dickinson@TAMU.EDU (Richard Dickinson) wrote: > > In article <6m7uq0$gr8$1@nnrp1.dejanews.com>, BRogers@my-dejanews.com says: > > > >In article <6m6ltm$2vg$1@news.tamu.edu>, > > R-Dickinson@TAMU.EDU (Richard Dickinson) wrote: > >> > >> Dear List: > >> > >> I have hardcoded PROC PRINTTO PRINT='LPT1:' into some SCL code > >> (submit block). If your printer is not on LPT1, what is the > >> best way to override the hardcoded PRINTTO > >> without actually changing the SCL code for > >> each print situation you encounter. > >> Is there some general PROC PRINTTO PRINT='?' that > >> you can specify, and then override it (or substitute it) > >> through -SYSPRINT? > >> > >> Hope I made sense. > > > >Richard, > > > >What I don't understand is why you're using proc printto at all. If you don't > >use PRINTTO (or if it's been previously used, just PROC PRINTTO;RUN; will > >reset it) then SAS will default to whatever printer is currently selected. To > >change printer (and/or print options), you can call the DLGPRTSETUP command > >if required. > > > >Alternatively, if there is a good reason, you could hard-code > >PROC PRINTTO PRINT=myprt ; > >where myprt is defined in a filename command: FILENAME MYPRT 'LPT1:' ; > > > >Hope this is useful, or am I missing the point here? > >Bruce > > > >-----== Posted via Deja News, The Leader in Internet Discussion ==----- > >http://www.dejanews.com/ Now offering spam-free web-based newsreading > Bruce: > > No, I think it's me that's missing something here. I've seen in the > documentation exactly what you posted, but in my Win SAS6.11 environment, > if you don't specify PROC PRINTTO or just specify PROC PRINTTO; RUN; > the output comes back to the terminal and not to the default printer. > > Thanks, Richard

Sorry, I _had_ missed a point there :-) Of course, what you want is to print _directly_ to the printer, whereas of course, the default action is to use the output window. Yes, you can use proc printto in this case and you will have to find a way of specifying the right port. Using a filename may help as detailed above.

Alternatively, you could let the output be generated to the output window and automatically print from there without it being displayed at all. Here's a snippet of SCL from an app I wrote some time ago:

call execcmdi('cle out;man off;lst off') ; link print; /* submits code to generate print */ call execcmdi('OUTPUT;PRINT;END;') ; call execcmdi('lst off') ;

HTH Bruce

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading


Back to: Top of message | Previous page | Main SAS-L page