> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/strings-cut/the-fields-to-cut-strings-cut-step.md).

# The fields to cut

![The fields to cut table in the Strings cut step](/files/REZQbmhpTUfQNmTw57kK)

Use **The fields to cut** table to specify what fields to cut and where to cut them.

The table contains the following columns:

| Column               | Description                                                                                                                                                                                                                                                                             |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **In stream field**  | Name of the field containing the string to cut. Use **Get fields** to populate the table with fields from the incoming PDI data stream.                                                                                                                                                 |
| **Out stream field** | (Optional) A new outgoing PDI field containing the resulting substring. If you do not specify a value for this field, the **In stream field** is replaced by the resulting substring.                                                                                                   |
| **Cut from**         | The character location at the starting point of the substring. This value is zero-based. The first character of the entire input string has an index of `0`.                                                                                                                            |
| **Cut to**           | The character location after the ending point of the substring, such that the substring cuts up to but not including the value entered. The value is zero-based but is exclusive. For example, setting **Cut to** to a value of `1` returns the first character in **In stream field**. |

The maximum length of the resulting string is **Cut to** minus **Cut from**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/9.3-data-integration/pdi-transformation-steps-reference-overview/strings-cut/the-fields-to-cut-strings-cut-step.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.
