BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
angelac44
Calcite | Level 5

I am new to SAS and speaking to some experienced SAS users within my organization, I was told that SAS is a non-relational database. I looked up "non-relational databases" and found some information about NoSQL databases, but I still do not think that SAS is a non-relational database. It appears to me that SAS datasets are flat files within a library with no relational structure, therefore I do not understand how it could be considered a database. I'd appreciate any input that would help me understand this better?

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@angelac44 wrote:

I am new to SAS and speaking to some experienced SAS users within my organization, I was told that SAS is a non-relational database. I looked up "non-relational databases" and found some information about NoSQL databases, but I still do not think that SAS is a non-relational database. It appears to me that SAS datasets are flat files within a library with no relational structure, therefore I do not understand how it could be considered a database. I'd appreciate any input that would help me understand this better?


I would say "Give me YOUR definition of database" before attempting an answer.

 

If you build tables properly those can be relational through the use data views, again somewhat depending on your definition of "relational".

I would not in general say that SAS data sets are "flat files" because the metadata stored about the datasets that can be accessed with different tools.

 

Just like any database software, you can make "good" databases or poor ones. Believe me, I have inherited some very interesting Access "databases".

View solution in original post

4 REPLIES 4
Reeza
Super User
SAS is not a DB. SAS stood for Statistical Analysis Software and was originally designed to analyze data.
It's primary function is still to analyze and process data.

ballardw
Super User

@angelac44 wrote:

I am new to SAS and speaking to some experienced SAS users within my organization, I was told that SAS is a non-relational database. I looked up "non-relational databases" and found some information about NoSQL databases, but I still do not think that SAS is a non-relational database. It appears to me that SAS datasets are flat files within a library with no relational structure, therefore I do not understand how it could be considered a database. I'd appreciate any input that would help me understand this better?


I would say "Give me YOUR definition of database" before attempting an answer.

 

If you build tables properly those can be relational through the use data views, again somewhat depending on your definition of "relational".

I would not in general say that SAS data sets are "flat files" because the metadata stored about the datasets that can be accessed with different tools.

 

Just like any database software, you can make "good" databases or poor ones. Believe me, I have inherited some very interesting Access "databases".

angelac44
Calcite | Level 5
Thanks for the clarification - that depending on the set up (if SAS is set up with relationships) it could be considered database. Yeah it comes down to having a clear definition of "database" or "relational". Also appreciate the information about the metadata aspect of SAS datasets.


SASKiwi
PROC Star

@angelac44 - SAS includes some features that are common to relational databases including table indexing and integrity constraints defining primary and foreign keys.

 

In general RDBMSs are often optimised for transactional processing whereas SAS is optimised for analytical processing. Many RDBMSs can now also be optimised for analytics.

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2019 views
  • 5 likes
  • 4 in conversation