# Exporting Data

This document explains how to export data from Astera Dataprep using different output formats. You can choose between *Excel, Delimited File,* and *Log File.*

\
Each method can be done through the *toolbar* or by simply asking in *Chat.*

{% tabs %}
{% tab title="Write to Excel" %}
Suppose you have a Dataprep Recipe containing cleansed data that you want to save as an Excel file for reporting purposes.

1. Open your Dataprep Recipe.

<figure><img src="/files/98pgAPFp5g7dZs12TPs4" alt=""><figcaption></figcaption></figure>

2. In the toolbar, click *Write* and select *Excel* from the drop-down.

<figure><img src="/files/R7n4kQXNXT0MJrc7Aegx" alt="" width="331"><figcaption></figcaption></figure>

3. This opens *Recipe Configuration – Write Excel* panel.

<figure><img src="/files/HhlDAElHgdjHXZ9BPcJE" alt="" width="386"><figcaption></figcaption></figure>

4. In this panel, you can configure the following options:
   * **File Path:** Specify the file path (and name) for the output file. You can type the path directly or click the folder icon to browse.
   * **Worksheet:** Specify the name of your worksheet. This can be used to either overwrite data in an existing worksheet or to add a new worksheet.&#x20;
   * **Start Address:** Indicate the cell value from where you want Astera Dataprep to start writing the data.&#x20;
5. Click <img src="/files/yYggqghZWdu7Vk7dpRxn" alt="" data-size="line">*Apply* to save settings or <img src="/files/4vyyuYi2hjKjR7Ps4d6M" alt="" data-size="line">*Cancel* to discard.

<figure><img src="/files/k6hqTQNJZ8d5FehzNDdZ" alt=""><figcaption></figcaption></figure>

6. Click *Execute Dataprep Recipe* to generate the Excel file.

<figure><img src="/files/9f2ADt7bGw9cetKzZcyB" alt=""><figcaption></figcaption></figure>

Alternatively, you can ask in Chat to write to an Excel file and then later instruct it to execute the recipe.

<figure><img src="/files/eybxBxWjFzT6IgStn5jq" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Write to Delimited File" %}
Suppose you have a Dataprep Recipe containing cleansed data that you want to save as a CSV file for sharing.

1. Open your Dataprep Recipe.

<figure><img src="/files/QDI2TbSIg1bMyMlSnzfq" alt=""><figcaption></figcaption></figure>

2. In the toolbar, click *Write* and select *Delimited File* from the drop-down.

<figure><img src="/files/VxD08HKp4HibyUzWGZsK" alt="" width="334"><figcaption></figcaption></figure>

3. This opens the *Recipe Configuration – Write Delimited* panel.

<figure><img src="/files/uB0qZ3EzR8LCQiRLE5Ga" alt="" width="387"><figcaption></figcaption></figure>

4. In this panel, you can configure the following options:

   * **Append To File (If Exists):** Choose whether to append new entries or overwrite the file.
   * **File Path:** Specify the file path (and name) for the output file. You can type the path directly or click the folder icon to browse.
   * **Field Delimiter:** Allows you to select a delimiter from the drop-down list for the fields.

   <figure><img src="/files/49mAAbJleQJY23cZvRQt" alt="" width="356"><figcaption></figcaption></figure>

   * **Record Delimiter:** Allows you to select the delimiter for the records in the fields. The choices available are carriage-return and line-feed combination, carriage-return and line-feed. You can also type the record delimiter of your choice instead of choosing the available options.

   <figure><img src="/files/fzwUFsEFRcWB92RzyKcC" alt="" width="351"><figcaption></figcaption></figure>
5. Click <img src="/files/yYggqghZWdu7Vk7dpRxn" alt="" data-size="line">*Apply* to save settings or <img src="/files/4vyyuYi2hjKjR7Ps4d6M" alt="" data-size="line">*Cancel* to discard.
6. Click *Execute Dataprep Recipe* to generate the file.

<figure><img src="/files/9f2ADt7bGw9cetKzZcyB" alt=""><figcaption></figcaption></figure>

Alternatively, you can ask in Chat to write to a delimited file and then later instruct it to execute the recipe.

<figure><img src="/files/PlI4wYYfjLXgbDW7OoUL" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Write to Log File" %}
Suppose you have a Dataprep Recipe processing customer transaction and you want to log specific records for tracking or debugging.

1. Open your Dataprep Recipe.

<figure><img src="/files/QDI2TbSIg1bMyMlSnzfq" alt=""><figcaption></figcaption></figure>

2. In the toolbar, click *Write* and select *Log File* from the drop-down.

<figure><img src="/files/55vv0j5HBCkQauEpOIk0" alt="" width="334"><figcaption></figcaption></figure>

3. This opens the *Recipe Configuration – Log* panel.

<figure><img src="/files/rNllF9A4DpLZUuu7jxGv" alt="" width="425"><figcaption></figcaption></figure>

4. In this panel, you can configure the following options:
   * **File Path:** Specify the file path (and name) for the output file. You can type the path directly or click the folder icon to browse.
   * **Create a new file on each run:** Check this box if you want a separate log file generated every time the recipe runs.
   * **Log Level Type:** Select which log entries to include:
     * **All:** Logs all messages.
     * **Errors:** Logs only error messages.
     * **Warnings:** Logs only warnings.
     * **Error and Warnings:** Logs both errors and warnings.
   * **Stop Logging After:** Specify the number of records after which logging should stop.
5. Click <img src="/files/yYggqghZWdu7Vk7dpRxn" alt="" data-size="line">*Apply* to save settings or <img src="/files/4vyyuYi2hjKjR7Ps4d6M" alt="" data-size="line">*Cancel* to discard.
6. Click *Execute Dataprep Recipe* to generate the file.

<figure><img src="/files/qjAuB9GTshCrw27PmMke" alt=""><figcaption></figcaption></figure>

Alternatively, you can ask in Chat to write to a log file and then later instruct it to execute the recipe.

<figure><img src="/files/Mq3Ygc6wznukE8DLoR3W" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://documentation.astera.com/dataprep/exporting-data.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.
