August 17, 2023

tFileOutputMSPositional – Docs for ESB 5.x

tFileOutputMSPositional

tFileOutputMSPositional_icon32.png

tFileOutputMSPositional properties

Component family

File/Output

 

Function

tFileOutputMSPositional writes
multiple schemas in a positional file.

Purpose

tFileOutputMSPositional creates a
complex multi-structured file, using data structures (schemas)
coming from several incoming Row
flows.

Basic settings

File Name

Name and path to the file to be created and/or variable to be
used.

For further information about how to define and use a variable in
a Job, see Talend Studio
User Guide.

 

Row separator

String (ex: ”
“on Unix) to distinguish rows.

 

Schemas

The table gets automatically populated by schemas coming from the
various incoming rows connected to tFileOutputMSPositional. Fill out the dependency
between the various schemas:

Parent row: Type in the parent flow
name (based on the Row name transferring the data).

Parent key column: Type in the key
column of the parent row

Key column: Type in the key column
for the selected row.

Pattern: Type in the pattern that
positions the fields separator for each incoming row.

Padding char: type in the padding
character to be used

Alignment: Select the relevant
alignment parameter

Advanced settings

Advanced separator (for numbers)

Select this check box to modify the separators used for
numbers:

Thousands separator: define
separators for thousands.

Decimal separator: define
separators for decimals.

 

Create directory if not exists

This check box is selected by default. It creates the directory
that holds the output delimited file, if it does not already
exist.

 

Encoding

Select the encoding from the list or select Custom and define it manually. This field is
compulsory for DB data handling.

 

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at a
Job level as well as at each component level.

Global Variables

NB_LINE: the number of rows read by an input component or
transferred to an output component. This is a Flow variable and it returns an
integer.

NB_LINE_REJECTED: the number of rows rejected. This is a
Flow variable and it returns an integer.

NB_LINE_UNKOWN_HEADER_TYPES: the number of rows with
unknown header type. This is a Flow variable and it returns an integer.

NB_LINE_PARSE_ERRORS: the number of rows with parse
errors. This is a Flow 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

Use this component to write a multi-schema positional file and
separate fields using a position separator value.

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

No scenario is available for this component yet.


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