SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 18170: Teradata FASTLOAD performance problems in SAS® 9

DetailsHotfixAboutRate It

Loading data from SAS to Teradata using SAS/Access® Interface to Teradata's FASTLOAD functionality has shown worse performance in SAS 9 compared to SAS 8.

In order to address this issue, the following steps must be taken:

  1. Install the hot fix referenced in the link below
  2. Use the FBUFSIZE data set option to force SAS to use a 32K buffer size to send data to Teradata
  3. Change the value of resp_buf_len to 32767 in your clispb.dat file
  4. Use the OVERRIDE_RESP_LEN=YES LIBNAME option to force SAS to use the resp_buf_len setting in the clispb.dat file
  5. Set DBCOMMIT=0 in the LIBNAME statement

The FBUFSIZE data set option should be set to 32000. SAS 9 normally sends 64000-byte buffers. Setting FBUFSIZE to 32000 reverts the buffer size back to the SAS 8.2 default.

Setting the resp_buf_len to 32767 in the clispb.dat file and using OVERRIDE_RESP_LEN=YES forces SAS 9 to revert to the SAS 8.2 default for the Teradata client response buffer.

By default, a COMMIT is issued after inserting 1000 rows. Setting DBCOMMIT=0 will allow all rows to be inserted prior to a COMMIT, thus speeding up the process.

An example of using all of these settings after applying the hot fix is below:

libname mylib teradata user=xyz password=xyz OVERRIDE_RESP_LEN=YES DBCOMMIT=0; data mylib.test(FASTLOAD=YES FBUFSIZE=32000); do i=1 to 100000; output; end; run;

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to TeradataMicrosoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
HP-UX IPF9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.