The number of buffers
is not a permanent attribute of the data set; it is valid only for
the current SAS session or job.
BUFNO= applies to SAS
data sets that are opened for input, output, or update.
Using BUFNO= can improve
execution time by limiting the number of input/output operations that
are required for a particular SAS data set. However, the improvement
in execution time comes at the expense of increased memory consumption.
You can estimate the
number of buffers that you need from the data set page size and the
amount of memory in your system. The data set page size can be specified
by the BUFSIZE= system option or by the BUFSIZE= data set option.
If the default is used, SAS uses the minimal optimal page size for
the operating environment. You can find the page size for a data set
in the output of the CONTENTS procedure. Once you have the data set
page size and the amount of memory available, you can estimate the
number of buffers that you need. If the number of buffers is too
large, SAS might not have enough memory to process the DATA or PROC
step. You can change the page size for a data set by re-creating
the data set by using the BUFSIZE= data set option.
Operating Environment Information: Under the Windows operating environment, if the SGIO system option
is set, the maximum number of bytes that can be processed in an I/O
operation is 64MB. Therefore,
number-of-buffers x
page-size <= 64MB.