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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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