|Date: ||Thu, 18 Jun 1998 08:06:54 GMT|
|Sender: ||"SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>|
|Organization: ||Deja News - The Leader in Internet Discussion|
|Subject: ||Re: Printer port in SCL Proc Printto|
In article <firstname.lastname@example.org>,
R-Dickinson@TAMU.EDU (Richard Dickinson) wrote:
> In article <email@example.com>, BRogers@my-dejanews.com says:
> >In article <firstname.lastname@example.org>,
> > 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.
> >What I don't understand is why you're using proc printto at all. If you
> >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.
> >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?
> >-----== Posted via Deja News, The Leader in Internet Discussion ==-----
> >http://www.dejanews.com/ Now offering spam-free web-based newsreading
> 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
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') ;
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading