BookmarkSubscribeRSS Feed
Anuz
Quartz | Level 8

Hi, 

 

I have inherited some code. The team and coders are no longer around. 

 

I am trying to figure out details of the complied macros that is used. This is what I have 

options mstored sasmstore=anscloc;

 %conn_ab;

 

How can I find out the location of the sasmstore - anscloc or what is the code included in the macro conn_ab ?

From what I can see conn_ab is setting some values for a connection. 

 

Without running the macro the subsequent code fails which is a load to Hadoop. 

 

Can anyone help with the above please ? Thank you, 

 

 

5 REPLIES 5
ballardw
Super User

@Anuz wrote:

Hi, 

 

I have inherited some code. The team and coders are no longer around. 

 

I am trying to figure out details of the complied macros that is used. This is what I have 

options mstored sasmstore=anscloc;

 %conn_ab;

 

How can I find out the location of the sasmstore - anscloc or what is the code included in the macro conn_ab ?

From what I can see conn_ab is setting some values for a connection. 

 

Without running the macro the subsequent code fails which is a load to Hadoop. 

 

Can anyone help with the above please ? Thank you, 

 

 


In your statements ANSCLOC would be the name of a LIBRARY. If you did not inherit any code assigning the ANSCLOC library this might be a tad difficult to find. The specified library should have a Catalog named SASMACR with the compiled versions of the macros.

 

The note is likely of interest: http://support.sas.com/kb/22/352.html  If whoever compiled the macros and did not use the SOURCE option you are not likely to find the code used.

 

 

Anuz
Quartz | Level 8

@ballardw with some digging I found the location of the complied macro.

 

It was listed in SAShelp.vslib. Don't know yet how to find the source code. 

Reeza
Super User
Often programmers store code with the same name as the macro. If you haven't already try searching your file system for a file called %conn_ab.

Anuz
Quartz | Level 8

@Reeza - Unfortunately the code is not available. I can only assume once they compiled the macro they didn't save it. Already searched for it. 

SASKiwi
PROC Star

What are the Hadoop load error messages? What should give you some clues as to what the macro is doing. I'm guessing that it is hiding a user account / password along with possibly a complete connection string. Looking at what may be missing from the Hadoop load code might help too.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1352 views
  • 0 likes
  • 4 in conversation