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.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 TPT_WORK_TABLE= Data Set Option 393TPT_WORK_TABLE= Data Set OptionSpecifies the name of the work table <strong>for</strong> <strong>SAS</strong> to use when using the TPT API with MultiLoad.Default value: table_name_WTValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: TeradataSyntaxTPT_WORK_TABLE=valid_teradata_table_nameSyntax Descriptionvalid_teradata_table_namespecifies the name of the work table <strong>for</strong> <strong>SAS</strong> to use when using the TPT API to loaddata with MultiLoad.DetailsTo use this option, you must first set TPT=YES. This option is valid only when usingthe TPT API.MultiLoad inserts that use the TPT API require a work table. If you do not specify awork table, Teradata appends "_WT" to the name of the target table to load and uses itas the work table by default. You can override this name by settingTPT_WORK_TABLE=. If you do this and the load step fails, you must specify the samename when restarting.The name that you specify in TPT_WORK_TABLE= must be unique. It cannot be thename of an existing table unless it is in a restart scenario.ExampleIn this example, a different name is provided <strong>for</strong> the work table that MultiLoad useswith the TPT API.libname tera teradata user=testuser pw=testpw;/* Load using Multiload TPT. Use alternate names <strong>for</strong> the work table. */data tera.testdata(MULTILOAD=YES TPT_WORK_TABLE=worktab);i=1;output; i=2;output;run;See Also“Maximizing Teradata Load Per<strong>for</strong>mance” on page 804“Using the TPT API” on page 807“MULTILOAD= Data Set Option” on page 342“TPT= LIBNAME Option” on page 192“TPT= Data Set Option” on page 373“TPT_ERROR_TABLE_1= Data Set Option” on page 380

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

Saved successfully!

Ooh no, something went wrong!