13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

348 MULTISTMT= Data Set Option 4 Chapter 11MULTISTMT= Data Set OptionSpecifies whether insert statements are sent to Teradata one at a time or in a group.Default value: NOValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: TeradataSyntaxMULTISTMT=YES | NOSyntax DescriptionYESattempts to send as many inserts to Teradata that can fit in a 64K buffer. Ifmultistatement inserts are not possible, processing reverts to single-row inserts.NOsend inserts to Teradata one row at a time.DetailsTo specify this option, you must first set MULTILOAD=YES.When you request multistatement inserts, <strong>SAS</strong> first determines how many insertstatements that it can send to Teradata. Several factors determine the actual numberof statements that <strong>SAS</strong> can send, such as how many SQL insert statements can fit in a64K buffer, how many data rows can fit in the 64K data buffer, and how many insertsthe Teradata server chooses to accept. When you need to insert large volumes of data,you can significantly improve per<strong>for</strong>mance by using MULTISTMT= instead of insertingonly single-row.When you also specify the DBCOMMIT= option, <strong>SAS</strong> uses the smaller of theDBCOMMIT= value and the number of insert statements that can fit in a buffer as thenumber of insert statements to send together at one time.You cannot currently use MULTISTMT= with the ERRLIMIT= option.ExamplesHere is an example of how you can send insert statements one at a time to Teradata.libname user teradata user=zoom pw=XXXXXX server=dbc;proc delete data=user.testdata;run;data user.testdata(DBTYPE=(I="INT") MULTISTMT=YES);do i=1 to 50;output;end;run;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!