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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

810 Using the TPT API 4 Chapter 28Starting MultiLoad with the TPT APISee the <strong>SAS</strong> configuration document <strong>for</strong> instructions on setting up the environmentso that <strong>SAS</strong> can find the TPT API modules.You can use one of these options to start MultiLoad in the <strong>SAS</strong>/<strong>ACCESS</strong> interfaceusing the TPT API:3 the TPT=YES data set option in a processing step that populates an emptyTeradata table3 the TPT=YES LIBNAME option on the destination libref (the Teradata DBMSlibrary where one or more tables are to be created and loaded)MultiLoad with TPT API Data Set OptionsThese data set options are specific to MultiLoad using the TPT API:3 TPT_BUFFER_SIZE=3 TPT_ERROR_TABLE_1=3 TPT_ERROR_TABLE_2=TPT API Multi-Statement Insert Supported Features and Restrictions<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Teradata supports the TPT API <strong>for</strong> Multi-Statementinsert, also known as the stream driver. <strong>SAS</strong>/<strong>ACCESS</strong> works by interfacing with thestream driver through the TPT API, which in turn uses the Teradata Multi-Statementinsert (TPump) protocol <strong>for</strong> loading data. See your Teradata documentation <strong>for</strong> morein<strong>for</strong>mation about the stream driver.This is the default Multi-Statement insert method. If <strong>SAS</strong> cannot find the Teradatamodules that are required <strong>for</strong> the TPT API or TPT=NO, then <strong>SAS</strong>/<strong>ACCESS</strong> uses the oldmethod of Multi-Statement insert. <strong>SAS</strong>/<strong>ACCESS</strong> can restart Multi-Statement insertfrom checkpoints when Multi-Statement insert uses the TPT API.The <strong>SAS</strong>/<strong>ACCESS</strong> Multi-Statement insert facility loads both empty and existingTeradata tables. <strong>SAS</strong>/<strong>ACCESS</strong> supports only insert operations and loading only onetarget table at time.Errors are logged to Teradata tables. Error recovery can be difficult if you do not setTPT_CHECKPOINT_DATA= to enable restart from the last checkpoint. To find theerror that corresponds to the code that is stored in the error table, see your Teradatadocumentation. You can restart a failed job <strong>for</strong> the last checkpoint by following theinstructions on the <strong>SAS</strong> error log.Starting Multi-Statement Insert with the TPT APISee the <strong>SAS</strong> configuration document <strong>for</strong> instructions on setting up the environmentso that <strong>SAS</strong> can find the TPT API modules.You can use one of these options to start Multi-Statement in the <strong>SAS</strong>/<strong>ACCESS</strong>interface using the TPT API:3 the TPT=YES data set option in a processing step that populates an emptyTeradata table3 the TPT=YES LIBNAME option on the destination libref (the Teradata DBMSlibrary where one or more tables are to be created and loaded)Multi-Statement Insert with TPT API Data Set OptionsThese data set options are specific to Multi-Statement insert using the TPT API.

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

Saved successfully!

Ooh no, something went wrong!