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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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