BUFSIZE= System Option

Specifies the permanent buffer page size for output SAS data sets.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Categories: Files: SAS Files

System administration: Performance

PROC OPTIONS GROUP= SASFILES

PERFORMANCE

Note: This option can be restricted by a site administrator. For more information, see Restricted Options.
See: BUFSIZE System Option: UNIX in SAS Companion for UNIX Environments

BUFSIZE System Option: Windows in SAS Companion for Windows

Syntax

BUFSIZE=n | nK | nM | nG | nT | hexX | MAX

Syntax Description

n | nK | nM | nG | nT
specifies the page size in multiples of 1 (bytes); 1,024 (kilobytes); 1,048,576 (megabytes); 1,073,741,824 (gigabytes); or 1,099,511,627,776 (terabytes). For example, a value of 8 specifies 8 bytes, and a value of 3m specifies 3,145,728 bytes.
Note: If the system option and the data set option are not set, the default is 0. This causes SAS to use the minimum optimal page size for the operating environment. The BUFSIZE= system option will be used with either of the following scenerios:
  • if the BUFSIZE= data set option is not set
  • if the BUFSIZE= data set option is set to zero
Use BUFSIZE=0 in order to reset the buffer page size to the default value in your operating environment.
hexX
specifies the page size as a hexadecimal value. You must specify the value beginning with a number (0–9), followed by an X. For example, the value 2dx sets the page size to 45 bytes.
MAX
sets the page size to the maximum possible number in your operating environment, up to the largest four-byte, signed integer, which is 231-1, or approximately 2 billion bytes.

Details

The page size is the amount of data that can be transferred from a single input/output operation to one buffer. The page size is a permanent attribute of the data set and is used when the data set is processed.
A larger page size can improve execution time by reducing the number of times SAS has to read from or write to the storage medium. However, the improvement in execution time comes at the expense of increased memory consumption.
To change the page size, use a DATA step to copy the data set and either specify a new page or use the SAS default.
Note: If you use the COPY procedure to copy a data set to another library that is allocated with a different engine, the specified page size of the data set is not retained.
Operating Environment Information: The default value for BUFSIZE= is determined by your operating environment and is set to optimize sequential access. To improve performance for direct (random) access, you should change the value for BUFSIZE=. For the default setting and possible settings for direct access, see the BUFSIZE= system option in the SAS documentation for your operating environment.

Comparisons

The BUFSIZE= system option can be overridden by the BUFSIZE= data set option.

See Also

Data Set Options:
BUFSIZE= Data Set Option in SAS Data Set Options: Reference
System Options: