/***************************************************************************************************************** SAS file name: BufsizeBufno File location: _________________________________________________________________________________________________________________ Purpose: To demonstrate how and where to set the Bufno and Bufsize options in SAS and what they do. Author: Peter Clemmensen Creation Date: 18/05/2018 This program supports the example page "Using the BUFSIZE and BUFNO Options in SAS" on SASnrd.com *****************************************************************************************************************/ /* Set Bufno and Bufsize as system options */ options bufsize=32k bufno=5; /* Check the values of Bufno and Bufsize */ proc options option=(bufsize bufno); run; /* Create data set a and rely on Bufno and Bufsize system options */ data a; do x=1 to 10e6; output; end; run; /* Review data set b */ proc contents data=a; run; /* Create data set b and set Bufno and Bufsize as data set options */ data b(bufsize=256k bufno=20); do x=1 to 10e6; output; end; run; /* Review data set b */ proc contents data=b; run;