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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1495 views
  • 0 likes
  • 5 in conversation