BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

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';
quit;

macrocatalog.JPG

2 REPLIES 2
PaigeMiller
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
SASKiwi
PROC Star

The ones you have listed appear to be internal to SAS and not the public ones included in SAS documentation: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n1pawushwfuic6n1afk2q6jmcar0.htm

 

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.

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 591 views
  • 1 like
  • 3 in conversation