It's hard to say if increasing the buff size would help, it could just be that you are dealing with a large dataset that takes time to access. This type of question requires lots of benchmarking. The best way to do this would be to provide us with a sample dataset and code so we can test. You can just use SAS Data instead of SQL Server and recreate your append so we can test ourselves.
If you decide that is too much work to provide a sample and would like to do your own benchmarking then you can use this SAS option to help.
Fullstimer sas option
You could also benchmark other programs in the future and collect performance metrics using a program that would read the log produced by your program to store those metrics. That program is called Logparse, I have included a link for your information.
Hope this helps.
Carmine
Please post proc contents of the data you try to append, so that we see how large it really is.
Bulk load?
I mean that is the obvious thing to try.
Another option to try is DBCOMMIT which is set to 1000 by default. You would probably want to keep this value similar to INSERTBUFF.
I've found from experience that experimenting with different values of both INSERTBUFF and DBCOMMIT can make a big difference in table insert times.
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 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: