bit long integer. In SAS 9.3, functionality was added to allow the limit to be extended to
match that of operating environments with a 64-bit long integer. To extend the
observation count in an output SAS data file, the EXTENDOBSCOUNTER= data set
option and LIBNAME statement options were provided, with the default set to NO. To
create a SAS data file with an extended observation count in SAS 9.3, you specify
EXTENDOBSCOUNTER=YES as either a SAS data set option or a LIBNAME
statement option.
SAS 9.4 enhances the extended observation count functionality by automatically
creating a 32-bit SAS data file with an extended observation count and by providing the
EXTENDOBSCOUNTER= system option. In SAS 9.4, the EXTENDOBSCOUNTER=
data set option, LIBNAME statement option, and system option are, by default, set to
YES. Therefore, in SAS 9.4, you must specify EXTENDOBSCOUNTER=NO if you do
not want a SAS data file created with an extended observation count.
Using the EXTENDOBSCOUNTER= Option
To control whether to extend the observation count in an output SAS data file, use the
EXTENDOBSCOUNTER= option. By default, the option requests an enhanced file
format that counts observations beyond the 32-bit long maximum.
Note: The EXTENDOBSCOUNTER= option has the alias EOC=.
The EXTENDOBSCOUNTER= option is supported in the following situations:
• As a SAS data set option, EXTENDOBSCOUNTER= applies to the newly created
output file with which the option appears. You can use the data set option to override
the setting of the LIBNAME statement and system option. For details, see
“EXTENDOBSCOUNTER= Data Set Option” in SAS Data Set Options: Reference.
• As a LIBNAME statement option, EXTENDOBSCOUNTER= applies to the newly
created output files in the SAS library. For details, see “LIBNAME Statement” in
SAS Statements: Reference.
• As a system option, EXTENDOBSCOUNTER= affects newly created output files in
the SAS session. For details, see “EXTENDOBSCOUNTER= System Option” in
SAS System Options: Reference.
To request that an output SAS data file not extend the observation count, you must
specify EXTENDOBSCOUNTER=NO. For example, the following code creates an
output SAS data file that does not extend the observation count beyond the 32-bit long
maximum when processed in an operating environment with a 32-bit long integer. The
EXTENDOBSCOUNTER= option is specified as a data set option in the DATA
statement. Requesting that an output SAS data file not extend the observation count
might be necessary if you need to process the file in a SAS version prior to SAS 9.3.
libname myfiles 'C:MyFiles';
data myfiles.bigfile (extendobscounter=no);
.
.
.
run;
Specifying EXTENDOBSCOUNTER= as a LIBNAME statement option controls the
enhanced file format for all files created for the SAS library. The following code uses the
COPY procedure to re-create all of the files in the SAS library without the extended
observation count:
Extending the Observation Count for a 32-Bit SAS Data File 663