Date: Tue, 11 Mar 2003 15:04:32 -0800
Reply-To: "Huang, Ya" <yhuang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Huang, Ya" <yhuang@AMYLIN.COM>
Subject: Re: redirect batch run log/lst file to different directory?
Content-Type: text/plain; charset="iso-8859-1"
Bob,
Thank you bob. Peter and Crawford, dhapema@sears.com and jrholdcraft@aep.com
also pointed out the I may try -log/-lst options. But it seems to me
that I still need to specify the full path and file name for -log/-lst
option each time I run a sas code. Currently I'm using altraedit,
and I set up a tool/icon with the command line filled as
"C:\Program Files\SAS Institute\SAS\V8\SAS.EXE" "%f" -nosplash
I know "%f" is to get the file name, so I suspect there is
some way I can use it in the -log option. I'm not sure how to
do it though. I tried the following, but obviously it won't work:
"C:\Program Files\SAS Institute\SAS\V8\SAS.EXE" "%f"
-nosplash -log "%f"
Any comments?
Ya
-----Original Message-----
From: Robert Abelson [mailto:rabelson@KAI-RESEARCH.COM]
Sent: Tuesday, March 11, 2003 2:50 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: redirect batch run log/lst file to different directory?
Ya,
I tried this, and you can add -log to your command line, redirecting the
.log anywhere you want. About the .lst file; I tried both -lst and -output
and got a SAS kernel error. I'm sure it's possible, but I don't know how.
Hope this helps you somewhat.
Bob Abelson
KAI
6001 Montrose Rd.
Suite 920
Rockville, MD 20852
T: 301-770-2730
F: 301-770-4183
rabelson@kai-research.com
"The free market is ugly and stupid, like going to the mall; the unfree
market is just as ugly and just as stupid, except there is nothing in the
mall and if you don't go there they shoot you."
- P.J. O'Rourke
> -----Original Message-----
> From: Huang, Ya [SMTP:yhuang@AMYLIN.COM]
> Sent: Tuesday, March 11, 2003 5:26 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: redirect batch run log/lst file to different directory?
>
> Hi there,
>
> SAS/Win/V8.2, by default, when you run a program in BATCH,
> you'll get a log file and lst file in the same directory
> as the code itself. I wonder if there is any way to redirect
> the log file and lst file to different directories, and still
> keep the same file name. I do not want to use proc printto.
> Neither I want to use ALTLOG and ALTPRINT, because those two
> need to specify the filename which means it is not automatic,
> also because it still generates log/lst file in the same
> directory as the code (altlog/altprint gives extra copy).
>
> Any possibility?
>
> Thanks
>
> Ya Huang
|