SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Patrick
Opal | Level 21

@buechler66 

You need SAS Management Console (SMC) to define libraries in SAS Metadata. Such definitions are permanent and static. They make sense for library definitions which are used in many programs and/or many users.

Which user can see/use which library defined in metadata is managed via metadata security.

 

More detail here. It's for SAS9.2 but the content is still valid:

https://support.sas.com/documentation/onlinedoc/guide/EG43MetaLibraries.pdf

 

A library in metadata can be pre-assigned. What this means: The definition gets executed during SAS invocation and the libref can then get used in code without any further code. If the library is not pre-assigned then it still shows up in the EG explorer but needs first assignment either manually (right click on the node in the EG explorer and choose "assign") or programmatically (libname statement using the Meta engine).

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 15 replies
  • 6811 views
  • 5 likes
  • 7 in conversation