Cannon
Cannon

Reputation: 319

SAS creating batch files

I am having trouble trying to figure out why my .bat file wont work. So far this is what I have:

@ECHO OFF

"C:\Program Stuff\Home\SASEnterpriseGuide\7.1\SEGuide.exe" -sysin "C:\Test\Daily report.sas"

PAUSE

It opens SAS just fine and then when it goes to import the sas file it gives me an error the error is a Text File Access Error.

I dont know if their is an easier way of doing this but I would like for it to open SAS like it is doing and then run that sas file. Any help would be appreciated. Also a side note I am using sas 7.1 64bit.

Upvotes: 2

Views: 1181

Answers (1)

user2877959
user2877959

Reputation: 1792

Running SAS in batch mode is meant to be done with sas.exe, not Enterprise Guide:

"C:\Program Stuff\Home\SASFoundation\9.X\sas.exe" -sysin "C:\Test\Daily report.sas"

If you abolutely need to use EGuide to run your program, you can go to File->Schedule.... This generates a VBS script that is used by Windows Task Scheduler to execute your scheduled project but you could call that script from your batch job.

Upvotes: 2

Related Questions