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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 5 replies
  • 776 views
  • 0 likes
  • 4 in conversation