BookmarkSubscribeRSS Feed
ArchanaSudhir
Obsidian | Level 7

Hi,

 

I am reading topics on creating multiple observations from a single record {@,@@) and creating one observation per detail record.

 

I am getting confused between record and observation. Is there a easy way to understand the difference?

 

Thanks,

Archana

3 REPLIES 3
Astounding
PROC Star

There's no real difference.  They both mean a single row of data.  SAS documentation uses "observation" to mean a row of data in a SAS data set, and "record" to mean a row of data from any other source.

Cynthia_sas
SAS Super FREQ
Hi:
These all mean the same thing:
observation=row=record
variable=column=field
dataset=table=file

For example, observation, variable and dataset are SAS terms; row, column and table are relational database terms; row, column and sheet are Excel terms; record, field and file are mainframe file terminology.

cynthia
kellios
Fluorite | Level 6
Just to add, because I was confused about this. There are times when a single observation may come from multiple rows of data (i.e multple records). eg:

Bob 2 Turtle
Green Michigan
Amy 3 Dog
Blue Alabama

When we read this correctly, there result will be 2 observations.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 6406 views
  • 2 likes
  • 4 in conversation