BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RaulME
Fluorite | Level 6

 

Hi, I am trying to run the project migration macro is the "EM_MigrateProject.sas". My problem is that I am not being able to execute it, when I try to execute it I get an error of "-bash: sas: command not found"

I am attaching a screenshot in case it is helpful.

 

RaulME_0-1613475813917.png

 

Link: https://support.sas.com/downloads/package.htm?pid=726

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
Just try the only one option?
<pre>

/sas/SASFoundation/9.4/sas -sysin $HOME/sas/xxxx.sas

</pre>

View solution in original post

7 REPLIES 7
Ksharp
Super User
You need specify the absolute path :
/sas/SASFoundation/9.4/sas -sysin $HOME/sas/xxxx.sas -config /location/sas/sasv9.cfg
RaulME
Fluorite | Level 6

I tried to execute it but I have the following error.

 

Attached capture of the error.

RaulME_1-1613491770965.png

 

ERROR: A Configuration Error has been detected.
There are no paths specified to locate executables.
SAS Initialization has failed.
Check your config file for a missing -path option.

Ksharp
Super User
Just try the only one option?
<pre>

/sas/SASFoundation/9.4/sas -sysin $HOME/sas/xxxx.sas

</pre>
Ksharp
Super User
And the path name do not contains white blanks .
or try double quote:
/sas/SASFoundation/9.4/sas -sysin "/home/sas code/xxxx.sas"
SASKiwi
PROC Star

It's a whole lot easier to run SAS batch jobs via SAS Management Console Schedule Manager rather than a Unix command line. That way you will execute your program on the correctly configured SAS workspace server context. Is that an option for you?

RaulME
Fluorite | Level 6

It may be an option but I don't know the steps I have to take to do it from the console.

SASKiwi
PROC Star

You can learn how to do this here: https://documentation.sas.com/?cdcId=bicdc&cdcVersion=9.4&docsetId=scheduleug&docsetTarget=p1msjx6z2...

 

Once the scheduled job is created you can choose to either run it now or to schedule it to run at a particular time.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 7 replies
  • 794 views
  • 0 likes
  • 3 in conversation