BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
againreddy
Obsidian | Level 7
Library  A  has the following tables.  
 
1. Tab1(empid,empname)
2. Tab2(saleid, salename)
3. Tab3(payid,payname)
 
I want Library B with following Views.  Library A and B are sourcing tables from the same location or database. Source for the Library can be a SAS datasets or other DBMS tables (via ODBC or SAS access to teradata).
 
 
1. view of Tab1(empid)
2.  view of Tab2(saleid)
 
How do I create the pre assigned  Library B?. Please advice.
1 ACCEPTED SOLUTION

Accepted Solutions
Clark
Obsidian | Level 7

You will need to follow these steps:

 

1. Create the physical location for library B.

2. Register the metadata for library B, pretty much like library A but with a different physical path.

3. You will have to create two dataset views either using SQL or DATASTEP code. Depending on what tool you use, SAS DM, SAS DI or SAS EG, there will be a slightly different approach but the code should be relatively the same.

4. Register metadata of the dataset views.

View solution in original post

1 REPLY 1
Clark
Obsidian | Level 7

You will need to follow these steps:

 

1. Create the physical location for library B.

2. Register the metadata for library B, pretty much like library A but with a different physical path.

3. You will have to create two dataset views either using SQL or DATASTEP code. Depending on what tool you use, SAS DM, SAS DI or SAS EG, there will be a slightly different approach but the code should be relatively the same.

4. Register metadata of the dataset views.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 707 views
  • 0 likes
  • 2 in conversation