BookmarkSubscribeRSS Feed
Barite | Level 11


It is the first time that I notice those macros in the work and sashelp libraries. Some of them seem to be SAS Studio specific.

Are you familiar with them? Have you made some use of them? If so, would you recommand some documentations for them?


proc sql;
    select libname, memname, memtype, objname, objtype, objdesc
    from dictionary.catalogs
    where upcase(objtype)='MACRO';


Diamond | Level 26

Yes, SASMACR is where the compiled macro is stored. WORK.SASMACR are macros you have created; SASHELP.SASMACR is where system macros are stored.


You could query this dictionary table to see what macros are available.

Paige Miller

The ones you have listed appear to be internal to SAS and not the public ones included in SAS documentation:


I think it would be dangerous to assume you can use these separately. In any case the ones in your WORK library get created when you do something in SAS, so there is no permanent macro definition you can call anyway. The ones in SASHELP starting with EM are likely Enterprise Miner macros and must be used within the product to work correctly.


Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 1 like
  • 3 in conversation