August 17, 2023

tTeradataMultiLoad – Docs for ESB 5.x

tTeradataMultiLoad

tTeradataMultiLoad_icon32_white.png

tTeradataMultiLoad Properties

Component Family

Databases/Teradata

 

Function

tTeradataMultiLoad reads a
database and extracts fields using queries.

Purpose

tTeradataMultiLoad executes a
database query according to a strict order which must be the same as
the one in the schema. The retrieve list of fields is then
transfered to the next component, using a connection flow (Main row).

Basic settings

Property type

Either Built-in or
Repository
.

Since version 5.6, both the Built-In mode and the Repository mode are
available in any of the Talend solutions.

 

 

Built-in: No property data stored
centrally.

 

 

Repository: Select the repository
file in which the properties are stored. The fields that follow are
completed automatically using the data retrieved.

 

Execution platform

Select the Operating System type you use.

 

Host

Host name or IP address of the database server.

 

Database
name

Database name.

 

Username and
Password

DB user authentication data.

To enter the password, click the […] button next to the
password field, and then in the pop-up dialog box enter the password between double quotes
and click OK to save the settings.

 

Table

Name of the table to be written. Note that only one table can be
written at a time.

 

Schema and Edit
Schema

A schema is a row description. It defines the number of fields to be processed and passed on
to the next component. The schema is either Built-In or
stored remotely in the Repository.

Since version 5.6, both the Built-In mode and the Repository mode are
available in any of the Talend solutions.

 

 

Built-In: You create and store the schema locally for this
component only. Related topic: see Talend Studio
User Guide.

 

 

Repository: You have already created the schema and
stored it in the Repository. You can reuse it in various projects and Job designs. Related
topic: see Talend Studio User Guide.

   

Click Edit schema to make changes to the schema. If the
current schema is of the Repository type, three options are
available:

  • View schema: choose this option to view the
    schema only.

  • Change to built-in property: choose this option
    to change the schema to Built-in for local
    changes.

  • Update repository connection: choose this option to change
    the schema stored in the repository and decide whether to propagate the changes to
    all the Jobs upon completion. If you just want to propagate the changes to the
    current Job, you can select No upon completion and
    choose this schema metadata again in the [Repository
    Content]
    window.

 

Script generated folder

Browse your directory and select the destination of the file which
will be created.

 

Action to data

On the data of the table defined, you can perform:

Insert: Add new entries to the
table. If duplicates are found, job stops.

Update: Make changes to existing
entries

Insert or update: Insert a new record. If the record with
the given reference already exists, an update would be made.

Delete: Remove entries
corresponding to the input flow.

Warning

It is necessary to specify at least one
column as a primary key on which the Update and Delete
operations are based. You can do that by clicking Edit Schema and selecting the
check box(es) next to the column(s) you want to set as
primary key(s).

 

Where condition in case Delete

Type in a condition, which, once verified, will delete the
row.

This field appears only when Delete is selected from the Action to data drop-down list.

 

Load file

Browse your directory and select the file from which you want to
load data.

 

Field separator

Character, string or regular expression to separate fields.

 

Error file

Browse your directory and select the destination of the file where
the error messages will be recorded.

Advanced settings

Define Log table

This check box is selected to define a log table you want to use
in place of the default one that is the database table you defined
in Basic settings. The syntax
required to define the log table is
databasename.logtablename.

 

BEGIN LOAD

This field allows you to define your BEGIN LOAD command to
initiate or restart a load task. You can specify the number of
sessions to use, the error limit, any other parameters needed to
execute the task.

For more information, see Teradata MultiLoad
Reference
documentation.

 

Return mload error

Select this check box to specify the exit code number to indicate
the point at which an error message should display in the
console.

 

Define character set

Specify the character encoding you need use for your system

 

tStat
Catcher Statistics

Select this check box to collect log data at the component
level.

Global Variables

EXIT_VALUE: the process exit code. This is an After
variable and it returns an integer.

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio
User Guide.

Usage

This component offers the flexibility of the DB query and covers
all possible SQL queries.

Log4j

The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User
Guide
.

For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html.

Related scenario

For related topic, see Scenario: Inserting data into a Teradata database table.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x