# Beam File Output

## <img src="/files/g17JHnnqgfjouiiqBOHq" alt="" data-size="line"> Beam File Output

### Description <a href="#description" id="description"></a>

The Beam File Output transform writes files using a file definition with the Beam execution engine.

| Hop Engine | X            |
| ---------- | ------------ |
| Spark      | <sup>✓</sup> |
| Flink      | <sup>✓</sup> |
| Dataflow   | <sup>✓</sup> |

### Options

| Option                 | Description                                                             |
| ---------------------- | ----------------------------------------------------------------------- |
| Transform name         | Name of the transform, this name has to be unique in a single pipeline. |
| Output location        | The output location.                                                    |
| File prefix            | Text which has to precede the file name.                                |
| File suffix            | Text which has to succeed the file name.                                |
| Windowed writes?       | Writes a file per window. Use together with the Beam Window transform.  |
| File definition to use | The file definition to use stored in a metastore.                       |
| Edit                   | Edits an existing file definition.                                      |
| New                    | Creates a new file definition.                                          |
| Manage                 | Opens the MetaStore Explorer.                                           |

### File Definition

A file definition can be used to define a file structure definition.

| Option            | Description                          |
| ----------------- | ------------------------------------ |
| Name              | The file definition name.            |
| Description       | The file definition description.     |
| Field separator   | The character separating the fields. |
| Field enclosure   | The character enclosing fields.      |
| Field definitions | A list of fields.                    |
| Field name        | The field name.                      |
| Type              | The field data type.                 |
| Format            | The field format.                    |
| Length            | The field length.                    |
| Precision         | The field precision.                 |


---

# 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.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/beamfileoutput.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.
