← All nodes
Output

IBM DB2 Output

Writes the rows that reach it into an existing IBM DB2 table, in one transaction, and passes them on unchanged.

When to use it

Use it to load staged data into DB2 — a staging table for a batch job, or reference data from a spreadsheet.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
ConnectionselectYesAdd a connection below
Target TableselectYesSelect a table
Write Modeselect—append
Key columnsselect—Columns that identify a row

Example

Load new rates

  • Target Table=STAGE.RATES
  • Write Mode=Upsert
  • Key columns=RATE_CODE
Rows arriving
RATE_CODERATE
STD0.042
PREF0.035
Passed on unchanged
RATE_CODERATE
STD0.042
PREF0.035

Worth knowing

  • All of a node's statements run in one transaction: if any insert fails, nothing changes.
  • Upsert deletes the incoming keys first, then inserts, in the same transaction.
  • Previews never write.

Others in Output