# finish

## Overview

The `finish` statement creates a [Reporting Database File](/3.5.4/advanced/digging-deeper/dataset-lifecycle.md) (RDF) from a DSET. The RDF can subsequently be used by the reporting engine.

## Syntax

**`finish`**`[dset.id]`

## Details

The `finish` statement is used to create an RDF from a DSET. Only a single DSET can be used to create an RDF, but multiple `finish` statements may be used within the same task file. If there is no *dset.id* parameter then the default DSET will be used.

The RDF created by `finish` will be saved as `<BaseDir>\system\report\<yyyy>\<MM>\<dd>_source.alias.rdf`

where:

* `<yyyy>` is the 4-digit year
* `<MM>` is the 2-digit month
* `<dd>` is the 2-digit day
* `source.alias` are the [source and alias](/3.5.4/advanced/digging-deeper/dataset-lifecycle.md) tags which form the DSET ID

Any existing RDF with the same name will be overwritten.

## Examples

Create a Reporting Database file for the default DSET:\
`finish`

Create a Reporting Database file for the DSET *Azure.usage*\
`finish Azure.usage`


---

# 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://olddocs.exivity.io/3.5.4/data-pipelines/transform/language/finish.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.
