| Date: | Wed, 17 Jun 1998 18:57:01 GMT |
| Reply-To: | Richard Dickinson <R-Dickinson@TAMU.EDU> |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | Richard Dickinson <R-Dickinson@TAMU.EDU> |
| Organization: | Texas A&M University |
| Subject: | Re: Printer port in SCL Proc Printto |
|---|
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
|