BookmarkSubscribeRSS Feed
gergely_batho
SAS Employee

Could you paste here the code you are using? First the outer code, then the contents of the first macro, then the inner macro.

That files (autocall macros) do you have? Where are they?

What is in the log (error message)?

I don't understand how you are using the "path of %anothermacro". When you are calling a macro, you just use the macro name.

You can list more then 1 path in the sasautos option. (See my previous example.) Is this maybe a solution?

If you are using autocall macros (You write one single macro with %macro xxx ;..... %mend; and save it to a file xxx.sas), do not place the macro call in the file. Only the macro definition goes there.

Tom
Super User Tom
Super User

Perhaps your habit of wrapping pure macro code inside of useless DATA _NULL_ step is what is causing the problem?

In your example line 163 is not needed.

Perhaps in your other programs you have similar unneeded lines?  Perhaps some are missing a closing semi-colon?

Perhaps some the lines in your macro source files are too long and are getting truncated when %INC or autocalled?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 16 replies
  • 1503 views
  • 0 likes
  • 5 in conversation