In most circumstances you can start writing a Job script by adding the needed
components. Follow the steps below to add and configure the components.
Procedure
In the Job script editor, enter an addComponent
{} function to start adding a component.
In the addComponent {} function, enter the
setComponentDefinition {} function and its parameters
to define the component.
Shown below are the minimal parameters required to define the type, the
unique name, and the position of the first
tFileInputDelimited component in this example.
Next to the setComponentDefinition
{} function, enter the setSettings
{} function to specify the path to the source file, the number
of header rows to skip, and optionally the label of the component displayed in
the design workspace.
Be sure to use a backslash (\) when specifying a
metacharacter.
Next to the setSettings {}
function, type in an addSchema {} function
and column definition parameters to define the component schema.
For each column, just specifies the name and type and leave the other column
properties as default. In this example, the main source file has four
columns, all of type String: id,
name, age, and
city.