CIB merge technical documentation (EN)

6. Call parameters in detail

6.11. Parameter --datafile

[--data/-d]

Set the data source with the --datafile parameter.


Syntax
--datafile=<Dateiname>

Description

A file in CSV or XML format can be specified as data source.

If the data is distributed over several data files, the multi-controller file must be specified here and the parameter --multidatafile must also be set.


Examples

Single CSV via parameter file

--datafile=Adresse.csv

The data is located in a single data source called Addresse.csv.

This way of using the parameter is demonstrated in the use case example Gap Text.


Multi CSV via parameter file

--datafile=multi.csv
--multidatafile

The data is distributed over several data files, which are specified in the file multi.csv. To define that it refers to a multi CSV, the parameter --multidatafile must also be set.

This way of using the parameter is demonstrated in the use case example serial letter. 

If the parameter --target-directory is also set, the multi.csv and all other data files are expected in this directory:

--target-directory=csv

The use of the combination of the parameters --datafile and --target-directory is demonstrated the use case example Templates.


Multi XML via parameter via

--headerfile=XML:Daten_mitAlias.xml
--datafile=/root/multi
--multidatafile

The --datafile parameter sets the XPath to the multi nodes.

This context is demonstrated in the use case example serial letter.

Note:

The first line of the record source contains the so-called tax rate, which consists of field names separated by ";". This tax rate can also be provided in a separate tax rate source, which is set with the parameter --headerfile.