Chapter 28
SAS Data Files
Definition of a SAS Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616
Differences between Data Files and SAS Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
Understanding the Observation Count in a SAS Data File . . . . . . . . . . . . . . . . . . 618
Definition of the Observation Count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Backward Compatibility of the Extended Observation Count Attribute . . . . . . . . 618
Interactions with the Extended Observation Count . . . . . . . . . . . . . . . . . . . . . . . . 620
Exceeding the Maximum Observation Count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Understanding an Audit Trail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621
Definition of an Audit Trail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621
Audit Trail Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
Defining and Using User Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623
Operation in a Shared Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Performance Implications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Preservation by Other Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Programming Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Other Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Initiating an Audit Trail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625
Controlling the Audit Trail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625
Reading and Determining the Status of the Audit Trail . . . . . . . . . . . . . . . . . . . . . 625
Audit Trails and CEDA Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
Examples of Using Audit Trails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
Understanding Generation Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631
Definition of Generation Data Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631
Terminology for Generation Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631
Invoking Generation Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Understanding How a Generation Group Is Maintained . . . . . . . . . . . . . . . . . . . . 632
Processing Specific Versions of a Generation Group . . . . . . . . . . . . . . . . . . . . . . . 634
Managing Generation Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
Understanding Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
Definition of Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
General and Referential Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
Preservation of Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639
Indexes and Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640
Locking Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
Encryption and Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
Specifying Integrity Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
Specifying Physical Location for Inter-Libref Referential
Integrity Constraints When Sharing Disk Space . . . . . . . . . . . . . . . . . . . . . . . . . 642
615

Get SAS 9.4 Language Reference, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.