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.

378 TPT_CHECKPOINT_DATA= Data Set Option 4 Chapter 11libname x teradata user=testuser pw=testpw;data test;Indo i=1 to 100;output;end;run;/* Set TPT=YES is optional because it is the default. */data x.test(MULTILOAD=YES TPT=YES);set test;run;This error message is sent to the <strong>SAS</strong> log. You need not setTPT_CHECKPOINT_DATA= because no checkpoints were recorded.ERROR: Teradata connection: Correct error and restart as an APPEND processwith option TPT_RESTART=YES. Since no checkpoints were taken,if the previous run used FIRSTOBS=n, use the same value in the restart.Here is an example of the restart step.proc append data=test base=x.test(FASTLOAD=YES TPT=YES TPT_RESTART=YES);run;In this next example, failure occurs after checkpoints are recorded.libname tera teradata user=testuser pw=testpw;/* Create data */data testdata;do i=1 to 100;output;end;run;/* Assume that this step fails after loading row 19. */data x.test(MULTISTMT=YES CHECKPOINT=3);set testdata;run;Here is the resulting error when it fails after loading 18 rows.ERROR: Teradata connection: Correct error and restart as an APPEND processwith option TPT_RESTART=YES. If the previous run used FIRSTOBS=n,use the value ( n-1+ 19 ) <strong>for</strong> FIRSTOBS in the restart. Otherwise use FIRSTOBS= 19 .Also specify TPT_CHECKPOINT_DATA= 18.You 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.

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

Saved successfully!

Ooh no, something went wrong!