BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I was just trying to reload my macro path
and the log file gives me the error;
then no matter what I run, the code doesnt execute and return the code to the log file.

any suggestions?

Thanks,

proc options option = macro; run; /* switch on macro capabilty*/
%Include 'C:\Macro\access macro.sas';

WARNING: Truncated record.
ERROR: Open code statement recursion detected.
ERROR: Expecting comma (to separate macro parameters) or close parenthesis (to end parameter list)
but found: when
ERROR: A dummy macro will be compiled.
1 REPLY 1
Patrick
Opal | Level 21
This code doesn't 'reload my macro path'; it also doesn't 'switch on macro capability'. Proc options just shows you what's already defined.

The error you get looks as if the included code has some syntax error in it.

Use the following options which might show you a bit better in your log what's going on:
options mprint merror mlogic symbolgen source2;

It's sometimes also a good idea to restart the session as errors can be caused by some 'left-over' of a previous run.

HTH
Patrick

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!

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
  • 1 reply
  • 967 views
  • 0 likes
  • 2 in conversation