BookmarkSubscribeRSS Feed
pp2014
Fluorite | Level 6

I have macro in the separate folder which I am trying access using sasautos option but I am getting error. What I am doing  wrong  and how to access the macro which is in different folder (don't want to use %include) filename mcr "c:\temp\macros"; options sasautos=mcr; data xyz;   set abc;   where ..; run; %RenMac(xyz); %RenMac(xyz);       -       180 WARNING: Apparent invocation of macro RENMAC not resolved. ERROR 180-322: Statement is not valid or it is used out of proper order.

3 REPLIES 3
SASKiwi
PROC Star

Is your macro in a file called renmac.sas and is your %macro renmac; statement the first statement in the file? You could also try options sasautos = ("c:\temp\macros") and option mautocall is set.

pp2014
Fluorite | Level 6

Somehow  in the renmac.sas I had first line blank.  I deleted that line. Now it worked. Thanks SASKiwi..

SASKiwi
PROC Star

Pleased it is now working. It would be good if you could mark your post as answered.

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!

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
  • 3 replies
  • 987 views
  • 3 likes
  • 2 in conversation