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.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 TPT_TRACE_LEVEL= Data Set Option 389You can restart the failed step with this code.proc append base=x.test(MULTISTMT=YES TPT_RESTART=YESTPT_CHECKPOINT_DATA=18) data=test(firstobs=19);run;If failure occurs after the end of the acquisition phase, you must write a custom C++program to restart from the point where it stopped.Here is a sample <strong>SAS</strong> program that failed after the acquisition phase and theresulting error message.libname x teradata user=testuser pw=testpw;data x.test(MULTILOAD=YES TPT=YES CHECKPOINT=7);do i=1 to 20;output;end;run;ERROR: Teradata connection: Failure occurred after the acquisition phase.Restart outside of <strong>SAS</strong> using checkpoint data 14.Set TPT_APPL_PHASE=YES to restart when failure occurs in the application phasebecause <strong>SAS</strong> has already sent all data to Teradata.proc append base=x.test(MULTILOAD=YES TPT_RESTART=YESTPT_CHECKPOINT_DATA=14 TPT_APPL_PHASE=YES) data=test(obs=1);run;You must always use TPT_CHECKPOINT_DATA= with TPT_RESTART= <strong>for</strong>MultLoad and Multi-Statement insert.See Also“Maximizing Teradata Load Per<strong>for</strong>mance” on page 804“Using the TPT API” on page 807“BULKLOAD= LIBNAME Option” on page 102“BULKLOAD= Data Set Option” on page 290“MULTILOAD= Data Set Option” on page 342“MULTISTMT= Data Set Option” on page 348“TPT= LIBNAME Option” on page 192“TPT= Data Set Option” on page 373“TPT_APPL_PHASE= Data Set Option” on page 374“TPT_CHECKPOINT_DATA= Data Set Option” on page 377TPT_TRACE_LEVEL= Data Set OptionSpecifies the required tracing level <strong>for</strong> sending data to Teradata and using the TPT API withFastload, MultiLoad, or Multi-Statement insert.Default value: 1Valid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: Teradata

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

Saved successfully!

Ooh no, something went wrong!