BookmarkSubscribeRSS Feed
David_Billa
Rhodochrosite | Level 12
Is there a way to identify the business keys of a SAS dataset without opening it?
4 REPLIES 4
Kurt_Bremser
Super User

Define "business key".

 

Technically, you can't do it without the SAS system accessing the dataset(s), as (e.g.) using dictionary.columns forces SAS to read the dataset header.

But from within SAS, using dictionary.columns to search for variables that satisfy certain conditions is the way to go.

David_Billa
Rhodochrosite | Level 12
You can query/access the dataset without opening manually opening the data
set.

We have defined business key using SCD type 2 transformation
PeterClemmensen
Tourmaline | Level 20

Depends on what you consider a 'business key'?

Patrick
Opal | Level 21

@David_Billa wrote:
Is there a way to identify the business keys of a SAS dataset without opening it?

That's about "know your data". Especially when doing ETL/DIS you need to know upfront how your source data structures look like, what can be missing or not, which columns make up keys. 

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 934 views
  • 0 likes
  • 4 in conversation