Help using Base SAS procedures

Simple question on making a .bat file to execute a sas program.

Accepted Solution Solved
Reply
Contributor
Posts: 23
Accepted Solution

Simple question on making a .bat file to execute a sas program.

Hi Community,

When I run the following batch file: "C:\Program
Files\SASHome\SASFoundation\9.3\SAS.exe" –sysin
"C:\sprogram.sas"

I get the following error message:

ERROR: Unrecognized SAS option name SPROGRAM.SAS.

ERROR: (SASXKRIN):
KERNEL RESOURCE INITIALIZATION FAILED.

ERROR: Unable to
initialize the SAS kernel.


Accepted Solutions
Solution
‎02-28-2013 03:46 PM
Trusted Advisor
Posts: 1,676

Re: Simple question on making a .bat file to execute a sas program.

When I run the following batch file: "C:\Program
Files\SASHome\SASFoundation\9.3\SAS.exe" –sysin
"C:\sprogram.sas"

Wild guess here ... the character before SYSIN looks like an em dash or an en dash, it does not look like a hyphen

Make sure it is a hyphen and try again

View solution in original post


All Replies
Solution
‎02-28-2013 03:46 PM
Trusted Advisor
Posts: 1,676

Re: Simple question on making a .bat file to execute a sas program.

When I run the following batch file: "C:\Program
Files\SASHome\SASFoundation\9.3\SAS.exe" –sysin
"C:\sprogram.sas"

Wild guess here ... the character before SYSIN looks like an em dash or an en dash, it does not look like a hyphen

Make sure it is a hyphen and try again

Contributor
Posts: 23

Re: Simple question on making a .bat file to execute a sas program.

Correct!  I did just find that out my self too, but thanks!

Contributor
Posts: 23

Re: Simple question on making a .bat file to execute a sas program.

They look the same in notepad...

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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