25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: Using INMOD and Notify Exit Routines<br />

INMOD Output Values<br />

Table 38: INMOD Input Return Code Values (continued)<br />

Code<br />

Description<br />

4 Request for INMOD to reposition to last checkpoint because of a <strong>Teradata</strong> <strong>Data</strong>base failure.<br />

Repositioning information, provided by the INMOD after a code 3, is read from the restart<br />

log table and returned to the INMOD in the buffer normally used for the data record.<br />

5 Request for INMOD to wrap up at termination.<br />

6 Request for INMOD to initialize.<br />

7 Request for INMOD to receive first (next) record.<br />

INMOD Output Values<br />

Table 39 lists valid values of the Return Code field and their meanings, as output to the<br />

INMOD routine.<br />

Table 39: INMOD Output Return Code Values<br />

Code<br />

Description<br />

0 on read call (code 1) Indicates End Of File not reached. The length field should be<br />

set to the length of the output record. If an input record was<br />

supplied to the INMOD and it is to be skipped, set the length<br />

field to zero. If no input record was supplied, setting the<br />

length to zero acts as an End Of File.<br />

Non-0 on read call (code 1)<br />

Indicates End Of File.<br />

0 on non-read call (not code 1) Indicates successful operation.<br />

Non-0 on non-read call (not code 1)<br />

Indicates a processing error. <strong>Teradata</strong> T<strong>Pump</strong> terminates.<br />

The second 32-bit address points to a data structure containing the following fields:<br />

• Sequence Number, 4-byte integer, Integer record counter portion of the source sequence<br />

number.<br />

• Parameter List, Varchar, 2-byte length, m, followed by the m-byte parms string as parsed<br />

and presented by <strong>Teradata</strong> T<strong>Pump</strong>.<br />

INMODs that cannot comply with these protocols should terminate if a Restart Code 2,<br />

Code 3, or Code 4 is encountered. Otherwise, data might become corrupted. In order to be<br />

restartable, INMODs must make use of <strong>Teradata</strong> T<strong>Pump</strong> to save and restore checkpoint<br />

information as described above. If the INMOD saves its checkpointing information privately,<br />

recovery might result in data corruption.<br />

Note: On z/OS, the module must reside in the steplib/joblib (for JCL), task library (for clist/<br />

exec), or the system linklist (for any).<br />

<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 217

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

Saved successfully!

Ooh no, something went wrong!