Date: Thu, 22 Feb 2001 11:03:02 +0200
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arjen Raateland <Arjen.Raateland@VYH.FI>
Organization: Suomen ymparistokeskus
Subject: Re: -LOG and -PRINT output in batch mode?
Content-Type: text/plain; charset=us-ascii
Richard DeVenezia wrote:
> Check the Windows command registered to run SAS 8 in batch mode.
> You can use regedit or Explore menu View/Folder Options...File Types, select
> (SAS System Program) and click Edit, then find the Batch action and Edit
> that to see the "Application used to perform action" entry in the dialog
> Eventually you will find that the command looks something like this (at
> least mine does)
> "K:\Program Files\SAS Institute\SAS\V8\sas.exe"
> First, if it looks like this it will break if the filename has an embedded
> space in it.
> A first better try is
> "K:\Program Files\SAS Institute\SAS\V8\sas.exe" "%1"
> %1 is the filename from Explorer, the double quotes ensure it gets passed to
> SAS as a single value.
Although I haven't solved the problem of truncated file names yet,
following up your suggestions led me to a different potential problem.
The double quotes around the %1 were in place on the command line, but
so was an unwanted -config option. We have set up SAS such that the two
config files are assigned through NT environment variables (one system
config for everybody and one for the single user). On the properties of
the SAS System Shortcut there is no -config option any longer.
However, I now found that the Batch Submit properties of SAS files had a
-config option and it also pointed to a different file than the intended
one (maybe a non-existant one).
BTW, I didn't understand your stuff about %L.
My intention is not so much to provide optimal LOG and OUTPUT
destinations for any intentionally run SAS Batch jobs, but rather to
make the resulting files recognizable to a user that accidentally runs a
SAS program in batch. I think files with truncated names aren't
The small window appearing with any SAS Batch job also truncates all
file and directory names of the program being run, which looks like an
unwanted feature to me.
BTW, when I think of all the file type properties for different types of
actions associated with different SAS files, I get a strong feeling I'm
not in control of all those settings.
Finnish Environment Institute
phone +358 9 4030 0350