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.
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.
Somehow in the renmac.sas I had first line blank. I deleted that line. Now it worked. Thanks SASKiwi..
Pleased it is now working. It would be good if you could mark your post as answered.
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.
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.