Statistical programming, matrix languages, and more

How run a downloaded macro file?

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

How run a downloaded macro file?

Hi,

 

I was trying to run a downloaded macro file and got the following error messages. How can I run the macro and input the variables for the macro? Thanks a  lot!

 

proc iml;
%include "E:\New folder\New Folder (2)\Udrive201508\Research\warranty\process.sas"; run;

%process (data= , vars= , y= , m =  , x=  , v=  , model=15);run;

 

 


WARNING: Physical file does not exist, E:\New folder\New Folder (2)\Udrive201508\Research\warranty\process.sas.
ERROR: Cannot open %INCLUDE file E:\New folder\New Folder (2)\Udrive201508\Research\warranty\process.sas.
NOTE: Module MAIN is undefined in IML; cannot be RUN.
WARNING: Apparent invocation of macro PROCESS not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Module MAIN is undefined in IML; cannot be RUN.


Accepted Solutions
Solution
‎02-24-2017 04:04 PM
Super User
Posts: 19,171

Re: How run a downloaded macro file?

Fix your error messages, in order. 

 

WARNING: Physical file does not exist, E:\New folder\New Folder (2)\Udrive201508\Research\warranty\process.sas

 

For some reason, SAS can't find the file you pointed to:

 

1. Verify that it's correct. 

2. If you're using SAS on a server, it likely can't access your desktop and you need to move the file to a location it can access.

3. If you're using SAS UE, it's the same situation as above, except follow the instructions to access myfolder

View solution in original post


All Replies
Super User
Posts: 7,447

Re: How run a downloaded macro file?

From where did you download the code?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Solution
‎02-24-2017 04:04 PM
Super User
Posts: 19,171

Re: How run a downloaded macro file?

Fix your error messages, in order. 

 

WARNING: Physical file does not exist, E:\New folder\New Folder (2)\Udrive201508\Research\warranty\process.sas

 

For some reason, SAS can't find the file you pointed to:

 

1. Verify that it's correct. 

2. If you're using SAS on a server, it likely can't access your desktop and you need to move the file to a location it can access.

3. If you're using SAS UE, it's the same situation as above, except follow the instructions to access myfolder

☑ This topic is solved.

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

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