Teradata Parallel Data Pump
Teradata Parallel Data Pump Reference - Teradata Developer ...
Teradata Parallel Data Pump Reference - Teradata Developer ...
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Appendix C: INMOD and Notify Exit Routine Examples<br />
Sample Notify Exit Routine<br />
fprintf(fp, "exit called @ CLI error %d\n",<br />
P->Vals.CLIError.ErrorCode);<br />
break;<br />
case NMEventErrorTable :<br />
fprintf(fp,"exit called @ ErrTable Drop : "<br />
"%u logable records.\n",<br />
P->Vals.ETDrop.Rows);<br />
break;<br />
case NMEventDBSError :<br />
fprintf(fp, "exit called @ DBS error %d\n",<br />
P->Vals.DBSError.ErrorCode);<br />
break;<br />
case NMEventImportBegin:<br />
fprintf(fp, "exit called @ import %d starting. \n",<br />
P->Vals.ImpStart.nImport);<br />
break;<br />
case NMEventImportEnd :<br />
fprintf(fp, "exit called @ import %d ending \n",<br />
P->Vals.Complete.nImport);<br />
fprintf(fp,<br />
"Total Records Read: %u \nRecords Skipped "<br />
"%u \nUnreadable Records:%u \nRecords Sent:<br />
"%u \n<strong>Data</strong> Errors :<br />
P->Vals.Complete.RecsIn,<br />
P->Vals.Complete.RecsSkipped,<br />
P->Vals.Complete.RecsRejd,<br />
P->Vals.Complete.RecsOut,<br />
P->Vals.Complete.RecsError);<br />
%u \n",<br />
break;<br />
case NMEventDBSRestart :<br />
fprintf(fp, "exit called @ RDBMS restarted\n");<br />
break;<br />
case NMEventExit :<br />
fprintf(fp, "exit called @ tpump notify out of scope:"<br />
" return code %d.\n",<br />
P->Vals.Exit.ReturnCode);<br />
break;<br />
case NMEventTableStats:<br />
fprintf(fp,"exit called @ Table Stats: \n");<br />
if(P->Vals.TableStats.type == 'I')<br />
fprintf(fp,"Rows Inserted : "<br />
"%u \nTable/Macro Name : %s \n<strong>Data</strong>base Name"<br />
" : %s \n",<br />
P->Vals.TableStats.Activity,<br />
P->Vals.TableStats.szName,<br />
P->Vals.TableStats.dbasename);<br />
if(P->Vals.TableStats.type == 'U')<br />
fprintf(fp,"Rows Updated : "<br />
"%u \nTable/Macro Name : %s \n<strong>Data</strong>base Name"<br />
" : %s \n",<br />
P->Vals.TableStats.Activity,<br />
254 <strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference