# 6.3 Redirecting

Part of: [6 Language](6-language.md)

Redirecting options enable reading data from the cursor in use, a (text, binary, or Excel) file, or memory (i.e. a user-defined variable), and writing it into an HDF5 userblock, dataset, or attribute through a [CREATE FILE](6-4-2-create-file.md), [CREATE DATASET](6-4-4-create-dataset.md), [CREATE ATTRIBUTE](6-4-5-create-attribute.md), [INSERT](6-5-1-insert.md), or [SET USERBLOCK](6-8-8-set-userblock.md) operation. They also enable writing result sets (i.e. data) returned by [DATA QUERY LANGUAGE (DQL)](6-6-data-query-language-dql.md) and [DATA INTROSPECTION LANGUAGE (DIL)](6-7-data-introspection-language-dil.md) operations into the cursor in use, an HDF5 object (i.e. dataset or attribute), a (text, binary, or Excel) file, or memory (i.e. a user-defined variable). The next subsections describe the redirecting options provided by HDFql.

| **Redirecting Option** | **Description** |
|---|---|
| [FROM](6-3-1-from.md) | Read data from the cursor in use, a (text, binary, or Excel) file, or memory (i.e. a user-defined variable), and write it into an HDF5 userblock, dataset, or attribute |
| [INTO](6-3-2-into.md) | Write result sets (i.e. data) into the cursor in use, an HDF5 object (i.e. dataset or attribute), a (text, binary, or Excel) file, or memory (i.e. a user-defined variable) |

Table 6.5 – HDFql redirecting options

## In this section

- [6.3.1 FROM](6-3-1-from.md)
- [6.3.2 INTO](6-3-2-into.md)
