08-22-2016 09:11 AM
Is there any difference in the terms RECORD and OBSERVATION? Because the book says Input buffer holds a RECORD and PDV is the place where SAS holds an OBSERVATION. I'm thinking both the terms mean the same. Please help me if I'm wrong.
08-22-2016 09:16 AM
It seems to be quite clearly stated in the book there. It referes to a "record" only when importing from a raw file. The reason is because one observation may be split over many rows, you could read in row after row and then finally when you have all the information output the observation. Take this example:
Now that is all one observation, but appears in 3 input records and to read it, you would hold the pointer over the line and continue until you had read the final data element.
08-22-2016 09:48 AM
Going by my experience (not documented anywhere), there is no difference. SAS tends to use the word OBSERVATION when talking about a record within a SAS data set, and RECORD when talking about a row of data from any other type of data.
While it's true that many raw data records can be combined into a single SAS observation, many other possibilities exist. Just to list a few:
If you were to be specific about the type of data (SAS data set vs. raw data vs. some other type of data), and whether the file you are talking about is an input file or an output file, there would be no difference between RECORD and OBSERVATION.