I am connecting to SSMS via ODBC using the following code
libname mylib odbc noprompt = "driver = ODBC Driver 11 for SQL Server;
server = Server_Name;
database = Database_Name;
Trusted_Connection = yes"
schema = Schema1;
If i'm only interested in the tables in schema1, schema2 and schema3,
is it possible to get all 3 schemas into one library? or am i limited to having an individual library for each schema?
You can create a compound library.
libname LIB1 odbc ... schema = Schema1;
libname LIB2 odbc ... schema = Schema2;
libname LIB3 odbc ... schema = Schema3;
libname LIB4 (LIB1 LIB2 LIB3);
You can create a compound library.
libname LIB1 odbc ... schema = Schema1;
libname LIB2 odbc ... schema = Schema2;
libname LIB3 odbc ... schema = Schema3;
libname LIB4 (LIB1 LIB2 LIB3);
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.