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 MULTILOAD= Data Set Option 343transferred from <strong>SAS</strong> to Teradata using shared memory. The default shared memorybuffer size is 64K. The default number of shared memory buffers used <strong>for</strong> the transferis 2. You can use BUFFERS= to vary the number of buffers <strong>for</strong> data transfer from 1 to8. You can use MBUFSIZE= to vary the size of the shared memory buffers from the sizeof each data row up to 1MB.Temporary Tables The Teradata MultiLoad utility uses four different temporarytables when it per<strong>for</strong>ms the bulk-load operation. It uses a log table to track restartin<strong>for</strong>mation, two error tables to track errors, and a work table to hold data be<strong>for</strong>e theinsert operation is made.By default, the <strong>SAS</strong>/<strong>ACCESS</strong> MultiLoad facility generates names <strong>for</strong> thesetemporary tables, where randnum represents a random number. To specify a differentname <strong>for</strong> these tables, use ML_RESTART=, ML_ERROR1=, ML_ERROR2=, andML_WORK=, respectively.Temporary TableRestart tableAcquisition error tableApplication error tableWork tableTable Name<strong>SAS</strong>_ML_RS_randnum<strong>SAS</strong>_ML_ET_randnum<strong>SAS</strong>_ML_UT_randnum<strong>SAS</strong>_ML_WT_randnumYou can use ML_LOG= to specify a prefix <strong>for</strong> the temporary table names thatMultiLoad uses.Here is the order that is used <strong>for</strong> naming the temporary tables that MultiLoad uses:1 If you set ML_LOG=, the prefix that you specified is used when naming temporarytables <strong>for</strong> MultiLoad.2 If you do not specify ML_LOG=, the values that you specified <strong>for</strong> ML_ERROR1,ML_ERROR2, ML_WORK, ML_RESTART are used.3 If you do not specify any table naming options, temporary table names aregenerated by default.Note: You cannot use ML_LOG with any of these options: ML_ERROR1,ML_ERROR2, ML_WORK, and ML_RESTART. 4Restarting MultiLoad The MultiLoad bulk-load operation (or MultiLoad job) works inphases. The first is the acquisition phase, during which data is transferred from <strong>SAS</strong> toTeradata work tables. The second is the application phase, during which data is appliedto the target table.If the MultiLoad job fails during the acquisition phase, you can restart the job fromthe last successful checkpoint. The exact observation from which the MultiLoad jobmust be restarted displays in the <strong>SAS</strong> log. If the MultiLoad job fails in the applicationphase—when data is loaded onto the target tables from the work table—restart theMultiLoad job outside of <strong>SAS</strong>. The MultiLoad restart script displays in the <strong>SAS</strong> log. Youcan run the generated MultiLoad script outside of <strong>SAS</strong> to complete the load.You can use ML_CHECKPOINT= to specify the checkpoint rate. Specify a value <strong>for</strong>ML_CHECKPOINT= if you want restart capability. If checkpoint tracking is not usedand the MultiLoad fails in the acquisition phase, the load needs to be restarted fromthe beginning. ML_CHECKPOINT=0 is the default, and no checkpoints are recoded ifyou use the default.

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

Saved successfully!

Ooh no, something went wrong!