BookmarkSubscribeRSS Feed
Pooja98
Fluorite | Level 6

While running the code, What will be the buffer size, if my SAS data file size is 10GB?

 

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

Are you referring to data set options BUFSIZE and BUFNO?

The first one is defined when the data set is created, the second one is set at run time.

Sajid01
Meteorite | Level 14

Hello @Pooja98 

One should note that the operating system has its own approach to reading writing data to disk. Typically, Linux and Window may read one buffer at a time.
By default, SAS automatically determines the buffer size depending upon the observation length, the operating system and the engine used.

For smaller observations, one may consider increasing the number of buffers but for others one can experiment in their environment.

Tom
Super User Tom
Super User

@Pooja98 wrote:

While running the code, What will be the buffer size, if my SAS data file size is 10GB?

 


Why would you care?  

Are you perhaps talking about downloading data from a remote database using a libname engine or the CONNECT statement in PROC SQL?

ChrisNZ
Tourmaline | Level 20

 

Why would you care?  

These settings can have a massive influence Tom.

 

See the last post in

https://communities.sas.com/t5/SAS-Programming/How-to-speed-up-performance-of-Sas-9-4-TS1M3-through-...

about reducing the time to just read a table from 195 seconds to 70s by simply changing the memory usage settings.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 807 views
  • 1 like
  • 4 in conversation