# Fields tab

![Fields tab](/files/n5G7CZQWQExN5MQM3bFD)

The **Fields** tab allows you to define the properties for the fields being exported.

| Column                     | Description                                                                                                                                                                                                                                                                                                                                                                                          |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name**                   | Specify the name of the field.                                                                                                                                                                                                                                                                                                                                                                       |
| **Type**                   | Select the field's data type from the dropdown list or enter it manually.                                                                                                                                                                                                                                                                                                                            |
| **Format**                 | Select the format mask (number type) from the dropdown list or enter it manually. See [Common Formats](/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/common-formats.md) for information on common valid date and numeric formats you can use in this step.                                                                                                |
| **Length**                 | <p>Specify the length of the field, according to the following field types:</p><ul><li><strong>Number</strong></li></ul><p>Total number of significant figures in a number.</p><ul><li><strong>String</strong></li></ul><p>Total length of string.</p><ul><li><strong>Date</strong></li></ul><p>Total length of printed output of the string. For example, <code>4</code> only returns the year.</p> |
| **Precision**              | Specify the number of floating point digits for number-type fields.                                                                                                                                                                                                                                                                                                                                  |
| **Currency**               | Specify the symbol used to represent currencies (for example, `$` or `€`).                                                                                                                                                                                                                                                                                                                           |
| **Decimal**                | Specify the symbol used to represent a decimal point, either a period (`.`) as in `10,000.00` or it can be a comma (`,`) as in `5.000,00`.                                                                                                                                                                                                                                                           |
| **Group**                  | Specify the method used to separate units of thousands in numbers of four digits or larger, either a comma (`,`) as in `10,000.00` or (`.`) as in `5.000,00`.                                                                                                                                                                                                                                        |
| **Trim type**              | Select the trimming method (none, left, right, or both) to apply to a string, which truncates the field before processing. Trimming only works when no field length is specified.                                                                                                                                                                                                                    |
| **Null**                   | Specify the string to insert into the output text file when the value of the field is null.                                                                                                                                                                                                                                                                                                          |
| **Get Fields** (button)    | Click to retrieve a list of fields from the input stream.                                                                                                                                                                                                                                                                                                                                            |
| **Minimal width** (button) | Click to minimize the field length by removing unnecessary characters. If selected, string fields will no longer be padded to their specified length.                                                                                                                                                                                                                                                |

See \[Understanding PDI data types and field metadata]\(../../../../Data%20Integration%20Perspective/Data%20Integration%20perspective%20in%20the%20PDI%20client/Advanced%20topics%20(PDI%20perspective)/Understanding%20PDI%20data%20types%20and%20field%20metadata.md) to maximize the efficiency of your transformation and job results.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/text-file-output-cp/options-text-file-output-reuse/fields-tab-text-file-output-kettle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
