It is unlikely that a SAS data file in an operating environment with a 64-bit long integer
will reach the maximum observation count. However, for operating environments with a
32-bit long integer, reaching the maximum observation count of approximately two
billion observations is not unusual.
The SAS 9.4 operating environments whose internal data representation store the
observation count as a 32-bit long integer include the following platforms:
• Microsoft Windows on 32-bit platform.
• Microsoft Windows 64-bit Edition. In this 64-bit operating environment, the long
integer data type uses the 32-bit model to maintain compatibility with 32-bit
applications.
• z/OS on 32-bit platform.
SAS Processing When the Maximum Observation Count Is Reached
When a SAS data file reaches the maximum observation count, continued SAS
processing depends on whether the file has an index or an integrity constraint that uses
an index.
• If the SAS data file has an index or an integrity constraint that uses an index (unique
key, primary key, and foreign key), an error message is issued when an operation
reaches the maximum observation count. For example:
ERROR: File MYFILES.BIGFILE contains 2G -1 observations and cannot
hold more because it contains an index or an Integrity Constraint
that uses an index.
For SAS 9, a SAS data file is never damaged when an operation attempts to exceed
the maximum observation count. However, you must take explicit action to continue
processing the file.
• If the SAS data file does not have an index or an integrity constraint that uses an
index, sequential processing continues and additional observations are accepted.
However, the file cannot store the observation count and does not maintain the
observation numbers. Any operation that requires an observation number is not
available. There are no messages to indicate that the file has reached or exceeded the
maximum observation count.
The following list describes some of the operations and features that are limited for a
SAS data file that exceeds the maximum observation count and does not have an
index or an integrity constraint that uses an index. For a complete list, contact SAS
Technical Support.
• SAS procedures that return an observation count (such as the PRINT procedure
or the CONTENTS procedure) return a missing value, which is represented by a
period (.), for the number of observations.
• SAS procedures that depend on the observation count (for example, the SORT
procedure or the COMPARE procedure) can return unpredictable results.
• Operations that update the observation count cannot be submitted. You cannot
reset the observation count by deleting observations.
• When you request to compress a file for which the observation count is no longer
maintained, the compression percentage cannot be calculated.
• You cannot create an index or an integrity constraint.
Understanding the Observation Count in a SAS Data File 609