SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 69350: SAS® 9.4M7 (TS1M7) might generate "ERROR: Teradata connection: CLI2: BADBUFRQ(302): Invalid buffer size" when querying a Teradata table

DetailsHotfixAboutRate It

With SAS 9.4M7, reading in a Teradata table might intermittently generate an error when either of the following scenarios is true:

Scenario 1

  • You run SAS 9.4M7 with Hot Fix J8F003 or J8F004.
  • Your first LIBNAME statement connecting to Teradata or your CONNECT TO statement includes the OVERRIDE_RESP_LEN=YES option.
  • Your Teradata clispb.dat file includes setting resp_buf_len= to a value greater than 65,535.

Scenario 2

  • You run SAS 9.4M7 with Hot Fix J8F003 or J8F004.
  • You use TTU 15.10. 
  • Your first LIBNAME statement connecting to Teradata or your CONNECT TO statement includes OVERRIDE_RESP_LEN=NO, or if you do not include the option because the default is no.

The error might look similar to the following:

ERROR: Teradata connection: CLI2: BADBUFRQ(302): Invalid buffer size

This issue occurs because, starting with Hot Fix J8F003, the resp_buf_len setting in the clispb.dat file is ignored and is automatically set to 1,048,500 when OVERRIDE_RESP_LEN=YES or when the option is not included. 
 
The workaround is to set resp_buf_len=65535 in your Teradata clispb.dat file and to use OVERRIDE_RESP_LEN=YES.

The error might also occur with versions prior to SAS 9.4M7. For more information, see SAS Note 46785.

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

Post Hot Fix Installation Information

After you apply the hot fix, there are some differences:

  • If you use TTU 16.20 or later, you should remove the TCP_BUF_SIZE environment variable from your SAS program or sasv9.cfg file, because it is automatically tuned by Teradata starting with TTU 16.00.
  • Output generated as a result of specifying the SASTRACE= option reveals the response buffer and request buffer size for each connection. The output might look similar to the following:
TERADATA: trprep: Response Buffer Length = 1048500
TERADATA: trprep: Request  Buffer Length = 18
  • The RESP_BUF_LEN= setting in the clispb.dat file is honored if you specify the OVERRIDE_RESP_LEN=YES option in the first LIBNAME statement or in each CONNECT TO statement to Teradata. If you set the OVERRIDE_RESP_LEN= option to no, the default RESP_BUF_LEN is 1,048,500.

Currently, the OVERRIDE_RESP_LEN= option is not checked for different settings when determining whether multiple LIBNAME statements can share a connection to Teradata. If the connection is shared, the setting for the option in the first LIBNAME statement is honored for the shared connection even if the settings are different. This behavior does not change with the hot fix. 

For example, the following LIBNAME statements result in OVERRIDE_RESP_BUFF = NO:

   libname x teradata user=tduser pass=tdpwd server=td schema=td1;
   libname y teradata user=tduser pass=tdpwd server=td schema=td2 override_resp_len=yes;  

While the following LIBNAME statements result in OVERRIDE_RESP_BUFF = YES:      

   libname x teradata user=tduser pass=tdpwd server=td schema=td1 override_resp_len=yes;
   libname y teradata user=tduser pass=tdpwd server=td schema=td2;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to Teradataz/OS9.4 TS1M7
Microsoft® Windows® for x649.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M7
Microsoft Windows 8 Enterprise x649.4 TS1M7
Microsoft Windows 8 Pro 32-bit9.4 TS1M7
Microsoft Windows 8 Pro x649.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M7
Microsoft Windows 8.1 Enterprise x649.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M7
Microsoft Windows 8.1 Pro x649.4 TS1M7
Microsoft Windows 109.4 TS1M7
Microsoft Windows 119.4 TS1M7
Microsoft Windows Server 20089.4 TS1M7
Microsoft Windows Server 2008 R29.4 TS1M7
Microsoft Windows Server 2008 for x649.4 TS1M7
Microsoft Windows Server 2012 Datacenter9.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter9.4 TS1M7
Microsoft Windows Server 2012 R2 Std9.4 TS1M7
Microsoft Windows Server 2012 Std9.4 TS1M7
Microsoft Windows Server 20169.4 TS1M7
Microsoft Windows Server 20199.4 TS1M7
Microsoft Windows Server 20229.4 TS1M7
Windows 7 Enterprise 32 bit9.4 TS1M7
Windows 7 Enterprise x649.4 TS1M7
Windows 7 Home Premium 32 bit9.4 TS1M7
Windows 7 Home Premium x649.4 TS1M7
Windows 7 Professional 32 bit9.4 TS1M7
Windows 7 Professional x649.4 TS1M7
Windows 7 Ultimate 32 bit9.4 TS1M7
Windows 7 Ultimate x649.4 TS1M7
64-bit Enabled AIX9.4 TS1M7
64-bit Enabled Solaris9.4 TS1M7
HP-UX IPF9.4 TS1M7
Linux for x649.4 TS1M7
Solaris for x649.4 TS1M7
* 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.