# 6.7.22 SHOW FILL

Part of: [6 Language](6-language.md) › [6.7 Data Introspection Language (DIL)](6-7-data-introspection-language-dil.md)

### Syntax

**SHOW** **FILL** [_file_name_] _dataset_name_\
[_post_processing_option_]\
[_output_redirecting_option_]

### Description

Show (i.e. get) the fill values of an HDF5 dataset named _dataset_name_.

### Parameter(s)

_file_name_ – optional string that specifies the name of the HDF5 file storing the dataset whose fill values are to be obtained. If _file_name_ is specified, the file is opened on the fly, the fill values of the dataset are obtained, and the file is subsequently closed. If not specified, the file currently in use is used instead.

_dataset_name_ – mandatory string that specifies the name of the HDF5 dataset whose fill values are to be obtained.

_post_processing_option_ – optional option that transforms the result set according to the programmer’s needs, such as ordering or truncating (please refer to the section [PROCESSING](6-2-processing.md) for additional information).

_output_redirecting_option_ – optional option that specifies the cursor in use, an HDF5 object (i.e. dataset or attribute), a (text, binary, or Excel) file, or memory (i.e. user-defined variable) to write the result set into (please refer to the subsection [INTO](6-3-2-into.md) for additional information). If not specified, the cursor in use is populated with the result set instead (please refer to the chapter [CURSOR](4-cursor.md) for additional information).

### Return

The fill values of an HDF5 dataset as an [HDFQL_TINYINT](5-1-constants.md#hdfql_tinyint) (in case the data type of the dataset is [HDFQL_TINYINT](5-1-constants.md#hdfql_tinyint)), [HDFQL_UNSIGNED_TINYINT](5-1-constants.md#hdfql_unsigned_tinyint) (in case the data type of the dataset is [HDFQL_UNSIGNED_TINYINT](5-1-constants.md#hdfql_unsigned_tinyint)), [HDFQL_SMALLINT](5-1-constants.md#hdfql_smallint) (in case the data type of the dataset is [HDFQL_SMALLINT](5-1-constants.md#hdfql_smallint)), [HDFQL_UNSIGNED_SMALLINT](5-1-constants.md#hdfql_unsigned_smallint) (in case the data type of the dataset is [HDFQL_UNSIGNED_SMALLINT](5-1-constants.md#hdfql_unsigned_smallint)), [HDFQL_INT](5-1-constants.md#hdfql_int) (in case the data type of the dataset is [HDFQL_INT](5-1-constants.md#hdfql_int)), [HDFQL_UNSIGNED_INT](5-1-constants.md#hdfql_unsigned_int) (in case the data type of the dataset is [HDFQL_UNSIGNED_INT](5-1-constants.md#hdfql_unsigned_int)), [HDFQL_BIGINT](5-1-constants.md#hdfql_bigint) (in case the data type of the dataset is [HDFQL_BIGINT](5-1-constants.md#hdfql_bigint)), [HDFQL_UNSIGNED_BIGINT](5-1-constants.md#hdfql_unsigned_bigint) (in case the data type of the dataset is [HDFQL_UNSIGNED_BIGINT](5-1-constants.md#hdfql_unsigned_bigint)), [HDFQL_FLOAT](5-1-constants.md#hdfql_float) (in case the data type of the dataset is [HDFQL_FLOAT](5-1-constants.md#hdfql_float)), [HDFQL_DOUBLE](5-1-constants.md#hdfql_double) (in case the data type of the dataset is [HDFQL_DOUBLE](5-1-constants.md#hdfql_double)), [HDFQL_CHAR](5-1-constants.md#hdfql_char) (in case the data type of the dataset is [HDFQL_CHAR](5-1-constants.md#hdfql_char)), [HDFQL_VARTINYINT](5-1-constants.md#hdfql_vartinyint) (in case the data type of the dataset is [HDFQL_VARTINYINT](5-1-constants.md#hdfql_vartinyint)), [HDFQL_UNSIGNED_VARTINYINT](5-1-constants.md#hdfql_unsigned_vartinyint) (in case the data type of the dataset is [HDFQL_UNSIGNED_VARTINYINT](5-1-constants.md#hdfql_unsigned_vartinyint)), [HDFQL_VARSMALLINT](5-1-constants.md#hdfql_varsmallint) (in case the data type of the dataset is [HDFQL_VARSMALLINT](5-1-constants.md#hdfql_varsmallint)), [HDFQL_UNSIGNED_VARSMALLINT](5-1-constants.md#hdfql_unsigned_varsmallint) (in case the data type of the dataset is [HDFQL_UNSIGNED_VARSMALLINT](5-1-constants.md#hdfql_unsigned_varsmallint)), [HDFQL_VARINT](5-1-constants.md#hdfql_varint) (in case the data type of the dataset is [HDFQL_VARINT](5-1-constants.md#hdfql_varint)), [HDFQL_UNSIGNED_VARINT](5-1-constants.md#hdfql_unsigned_varint) (in case the data type of the dataset is [HDFQL_UNSIGNED_VARINT](5-1-constants.md#hdfql_unsigned_varint)), [HDFQL_VARBIGINT](5-1-constants.md#hdfql_varbigint) (in case the data type of the dataset is [HDFQL_VARBIGINT](5-1-constants.md#hdfql_varbigint)), [HDFQL_UNSIGNED_VARBIGINT](5-1-constants.md#hdfql_unsigned_varbigint) (in case the data type of the dataset is [HDFQL_UNSIGNED_VARBIGINT](5-1-constants.md#hdfql_unsigned_varbigint)), [HDFQL_VARFLOAT](5-1-constants.md#hdfql_varfloat) (in case the data type of the dataset is [HDFQL_VARFLOAT](5-1-constants.md#hdfql_varfloat)), [HDFQL_VARDOUBLE](5-1-constants.md#hdfql_vardouble) (in case the data type of the dataset is [HDFQL_VARDOUBLE](5-1-constants.md#hdfql_vardouble)), [HDFQL_VARCHAR](5-1-constants.md#hdfql_varchar) (in case the data type of the dataset is [HDFQL_VARCHAR](5-1-constants.md#hdfql_varchar)) or [HDFQL_OPAQUE](5-1-constants.md#hdfql_opaque) (in case the data type of the dataset is [HDFQL_OPAQUE](5-1-constants.md#hdfql_opaque)), [HDFQL_ENUMERATION](5-1-constants.md#hdfql_enumeration) (in case the data type of the dataset is [HDFQL_ENUMERATION](5-1-constants.md#hdfql_enumeration)), [HDFQL_COMPOUND](5-1-constants.md#hdfql_compound) (in case the data type of the dataset is [HDFQL_COMPOUND](5-1-constants.md#hdfql_compound)), or nothing (in case the fill type of the dataset is [HDFQL_FILL_UNDEFINED](5-1-constants.md#hdfql_fill_undefined)).

### Example(s)

```hdfql
# create an HDF5 dataset named "my_dataset0" of data type int 
CREATE DATASET my_dataset0 AS INT

# show (i.e. get) fill values of dataset "my_dataset0" (should return 0) 
SHOW FILL my_dataset0

# create an HDF5 dataset named "my_dataset1" of data type int with a fill value of 20 
CREATE DATASET my_dataset1 AS INT FILL(20)

# show (i.e. get) fill values of dataset "my_dataset1" (should return 20) 
SHOW FILL my_dataset1

# create an HDF5 dataset named "my_dataset2" of data type variable-length char of one dimension (size 5) with a fill value of "Hierarchical Data Format"
CREATE DATASET my_dataset2 AS VARCHAR(5) FILL("Hierarchical Data Format")

# show (i.e. get) fill values of dataset "my_dataset2" (should return "Hierarchical Data Format")
SHOW FILL my_dataset2

# create an HDF5 dataset named "my_dataset3" of data type variable-length int with fill values of 100 and 200
CREATE DATASET my_dataset3 AS VARINT FILL(100, 200)

# show (i.e. get) fill values of dataset "my_dataset3" (should return 100, 200) 
SHOW FILL my_dataset3

# create an HDF5 dataset named "my_dataset4" of data type enumeration composed of three members named "Earth" (with value 0), "Moon" (with value 1), and "Mars" (with value 2) with a fill value of "Mars" (i.e. 2)
CREATE DATASET my_dataset4 AS ENUMERATION(Earth, Moon, Mars) FILL(Mars)

# show (i.e. get) fill value of dataset "my_dataset4" (should return 2 (i.e. "Mars")) 
SHOW FILL my_dataset4
```
