ASCII Descriptor
An (ASCII) descriptor is an XML document describing the structure of data records in a text file. It serves the adapters ASCII Writer, COBOL Copybook Writer and COBOL Copybook Reader as rules definition for the conversion between text and XML. The repository path of descriptor documents is specified in this adapters as parameter. Thus, descriptors normally are not included as own process component into processes.
For text files in Cobol Copybook format, you can generate a specific descriptor document using the Cobol Copybook to XML Wizard automatically. For CSV text documents, you can use the CSV Converter.
Elements
<Descriptor> | Root element. Contains one or multiple elements |
<Record> | Corresponds to a data record in the text file. It can contain one or multiple elements |
<Column> | Corresponds to a column, i.e., a concrete value in the text file, and has attributes described below, but it may not have child elements. |
Attributes of <Descriptor>
Attribute | Description |
---|---|
Id | Data record ID (optional) The attribute is used within the ASCII Reader and ASCII Writer. |
Name | Name of the root element in the XML document The attribute is used within the GDV Message Writer, the COBOL Copybook Writer ( |
Description | Description text for the ASCII descriptor (optional) |
RecordSeparator | Separator for the data records (optional)
|
Columns | Required number of columns of the data record (optional) The attribute is used within the ASCII Reader ( |
RecordOrder | Order of the single data records (optional) The attribute is used within the ASCII Reader and ASCII Writer. Possible values:
|
RecordLength | Length of the single data records (optional) The attribute is used within the GDV Message Reader ( |
Identifier | Value of the data record identifier (optional) The attribute is used within the ASCII Reader ( |
IdentifierPos | Position of the data record identifier (optional) The attribute is used within the GDV Message Reader ( |
IdentifierLength | Lenght of the data record identifier (optional) The attribute is used within the GDV Message Reader ( |
TeilsatzPos | Specifies the position within the record data The attribute is used within the GDV Message Reader ( Possible values:
|
Suffix | Suffix (optional). Marks the end of a data record.
|
Prefix | Prefix (optional). Marks the beginning of a data record
|
Mandatory | Declare data record as mandatory (optional) The attribute is used within the ASCII Reader and ASCII Writer. Possible values:
|
Multiple | Data record can exist multiple times (optional) The attribute is used within the ASCII Reader and ASCII Writer. Possible values:
|
Length | Required length of the data record in characters (optional) The attribute is used within the ASCII Reader ( |
Separator | Separator for the data records (optional)
|
Attributes of <Record>
Attribute | Description |
---|---|
Id | ID of the data record The attribute is used within the ASCII Reader ( |
Name | Name of the data record elements in the XML document The attribute is used within the GDV Message Reader and GDV Message Writer, the ASCII Reader ( |
Prefix | Prefix (optional). Marks the beginning of a data record.
|
Suffix | Suffix (optional). Marks the end of a data record.
|
Mandatory | Declare data record as mandatory (optional) The attribute is used within the ASCII Reader and ASCII Writer and the COBOL Copybook Writer and COBOL Copybook Reader. Possible values:
|
Multiple | Data record can exist multiple times (optional) The attribute is used within the ASCII Reader and ASCII Writer and the COBOL Copybook Writer and COBOL Copybook Reader.
|
IdentifierPos | Position of the data record identifier (optional) The attribute is used within the ASCII Reader ( |
IdentifierLength | Length of the data record identifier (optional) The attribute is used within the ASCII Reader ( |
Identifier | Value of the data record identifier (optional) The attribute is used within the GDV Message Writer and GDV Message Reader, the ASCII Reader ( |
ColumnSeparator | Column separator (optional)
|
Columns | Number of required columns of the data record (optional) |
ColumnOrder | Order of the single columns (optional) The attribute is used within the ASCII Reader and ASCII Writer. Possible values:
|
Occurs | Number of repetitions of the data record The attribute is used within the ASCII Reader ( |
Description | Description text for the data record (optional) |
Length | Required length of the data record in characters (optional) The attribute is used within the GDV Message Reader ( |
Attributes of <Column>
Attribute | Description |
---|---|
Id | Column ID (optional) The attribute is used within the ASCII Reader ( |
Name | Name of the field element within the XML document The attribute is used within the GDV Message Reader ( |
Type | Data type of the column/field The attribute is used within the GDV Message Writer ( Possible values:
|
Prefix | Prefix (optional). Marks the beginning of a field value.
|
Suffix | Suffix (optional). Marks the end of a field value.
|
Mandatory | Declare as mandatory field (optional) The attribute is used within the ASCII Reader and ASCII Writer and the COBOL Copybook Writer and COBOL Copybook Reader. Possible values:
|
Multiple | Field can exist multiple times (optional) The attribute is used within the ASCII Reader and ASCII Writer. Possible values:
|
IdentifierPos | Position of the column identifier (optional) The attribute is used within the ASCII Reader ( |
IdentifierLength | Length of the column identifier (optional) The attribute is used within the ASCII Reader ( |
Identifier | Value of the column identifier (optional) The attribute is used within the ASCII Reader ( |
Default | Default value of the field (only for mandatory fields) The attribute is used within the ASCII Reader ( |
Regex | Regular expression describing the column values (optional) The attribute is used within the ASCII Reader ( Example: * |
Length | Required field length in characters (optional)
|
RecordMultiplicator | Repeat data record The attribute is used within the COBOL Copybook Writer and COBOL Copybook Reader. Possible values:
|
RecordMultiplicated | ID of the multiple occurring data record (if The attribute is used within the COBOL Copybook Writer ( |
Binary | When reading/writing the data is encoded from Base64 to binary or from binary to Base64 The attribute is used within the COBOL Copybook Writer and COBOL Copybook Reader. |
Occurs | Number of repetitions of the column The attribute is used within the COBOL Copybook Writer ( |