BookmarkSubscribeRSS Feed
jerry898969
Pyrite | Level 9

I have a web application which is .net 4.5 that runs on a windows 2008 web server with IIS 7.5 and SAS 9.3 64-bit.  I'm trying to execute a sas file that I generate on the file, but when I try and run this process I keep getting the following Errors in  C:\ProgramData\SAS\LOGS\sas.123.456789.log

ERROR: Invalid physical name for library SASUSER.

NOTE: Unable to initialize the options subsystem.

ERROR: (SASXKINI): PHASE 3 KERNEL INITIALIZATION FAILED.

ERROR: Unable to initialize the SAS kernel.

This is the c# code to execute the command line

string cmd = string.Format(@"c:\Program Files\SASHome\SASFoundation\9.3\sas.exe");

string sArgument = string.Format(@" -config C:\PROGRA~1\SASHome\SASFoundation\9.3\nls\en\sasv9Web.cfg -sysin d:\test\sas{0}.sas -log d:\test\sas{0}.log", ID);

ProcessStartInfo pSI = new System.Diagnostics.ProcessStartInfo(cmd, sArgument);

pSI.UseShellExecute = true;           

Process p = new Process();

p.EnableRaisingEvents = true;

p.Exited += new EventHandler(MyExited);

p.StartInfo = pSI;

p.Start();

p.WaitForExit();

I'm trying to point to a new config file and within the config file i'm setting SASUSER to -SASUSER "!TEMP\SAS Temporary Files", but I still get this error.

Any help would be appreciated.

2 REPLIES 2
ballardw
Super User

Is there an existing folder named SAS Temporary Files in the path that !TEMP resoves to? I suspect the folder not existing is part of the problem since that is one of the most common causes of invalid physical name issues.

Tom
Super User Tom
Super User

Try pointing SASUSER to a physical directory that you know exists and that the user has write access.

If that works then you can debug why the other path doesn't work.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3182 views
  • 0 likes
  • 3 in conversation