BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
I have written all my codes in EG .
Now im trying to run a sas code by scheduling it every 15 mins...

First i save my code as D:\Final\Codet4sch.sas on server
Then i create a batch file havin the following command:

Start/w C:\SAS\SAS.exe –sysin D:\Final\Codet4sch.sas

Wen I double click this Batch file or put it in windows scheduler..it should run Codet4sch.sas automatically..

But here it throws an exception tht it could not locate sas.exe.... how do i create one>>??

Thanks,
Nachiket
2 REPLIES 2
deleted_user
Not applicable
The issue can be found by reading the error message. SAS.EXE is not held in C:\SAS\Sas.exe and hasn't been installed in that location since version 6.

It is in a directory under Programs, in an area identified as SAS Institute in a folder that specifies the version of SAS. Search for it in Windows explorer and adjust the path. Note that since the path will include spaces that you will need to enclose the command line for SAS in double quotes or it won't work.

Kind regards

David
deleted_user
Not applicable
David,

It runs w/o error now but wat it does is it pops up a new cmd window labelled with the path where i ve stored my .sas file...

but it doesnt execute the code i guess coz i cudnt find a dataset in the desired location after execution of code...as per my expectations...

Is der any alternate method to do scheduling using Windows Scheduler?

Thanks,
Nachiket

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 619 views
  • 0 likes
  • 1 in conversation