# 6.7.9 SHOW MEMBER

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

### Syntax

**SHOW** **MEMBER** [**DATASET** | **ATTRIBUTE**] [_file_name_] _object_name_\
[_post_processing_option_]\
[_output_redirecting_option_]

### Description

Show (i.e. get) the members of an HDF5 dataset or attribute named _object_name_. If _object_name_ is neither of data type [HDFQL_ENUMERATION](5-1-constants.md#hdfql_enumeration) nor [HDFQL_COMPOUND](5-1-constants.md#hdfql_compound), an error is raised. In case a dataset and an attribute with identical names (_object_name_) are stored in the same location (i.e. group) and neither the keyword DATASET nor ATTRIBUTE is specified, the members returned belong to the dataset. To explicitly get the members of _object_name_ according to its type, the keyword DATASET or ATTRIBUTE must be specified.

### Parameter(s)

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

_object_name_ – mandatory string that specifies the name of the HDF5 dataset or attribute whose members 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 members of an HDF5 dataset or attribute as an [HDFQL_INT](5-1-constants.md#hdfql_int), which can be [HDFQL_TINYINT](5-1-constants.md#hdfql_tinyint), [HDFQL_UNSIGNED_TINYINT](5-1-constants.md#hdfql_unsigned_tinyint), [HDFQL_SMALLINT](5-1-constants.md#hdfql_smallint), [HDFQL_UNSIGNED_SMALLINT](5-1-constants.md#hdfql_unsigned_smallint), [HDFQL_INT](5-1-constants.md#hdfql_int), [HDFQL_UNSIGNED_INT](5-1-constants.md#hdfql_unsigned_int), [HDFQL_BIGINT](5-1-constants.md#hdfql_bigint), [HDFQL_UNSIGNED_BIGINT](5-1-constants.md#hdfql_unsigned_bigint), [HDFQL_FLOAT](5-1-constants.md#hdfql_float), [HDFQL_DOUBLE](5-1-constants.md#hdfql_double), [HDFQL_CHAR](5-1-constants.md#hdfql_char), [HDFQL_VARTINYINT](5-1-constants.md#hdfql_vartinyint), [HDFQL_UNSIGNED_VARTINYINT](5-1-constants.md#hdfql_unsigned_vartinyint), [HDFQL_VARSMALLINT](5-1-constants.md#hdfql_varsmallint), [HDFQL_UNSIGNED_VARSMALLINT](5-1-constants.md#hdfql_unsigned_varsmallint), [HDFQL_VARINT](5-1-constants.md#hdfql_varint), [HDFQL_UNSIGNED_VARINT](5-1-constants.md#hdfql_unsigned_varint), [HDFQL_VARBIGINT](5-1-constants.md#hdfql_varbigint), [HDFQL_UNSIGNED_VARBIGINT](5-1-constants.md#hdfql_unsigned_varbigint), [HDFQL_VARFLOAT](5-1-constants.md#hdfql_varfloat), [HDFQL_VARDOUBLE](5-1-constants.md#hdfql_vardouble), [HDFQL_VARCHAR](5-1-constants.md#hdfql_varchar), [HDFQL_OPAQUE](5-1-constants.md#hdfql_opaque), [HDFQL_BITFIELD](5-1-constants.md#hdfql_bitfield), [HDFQL_ENUMERATION](5-1-constants.md#hdfql_enumeration), [HDFQL_COMPOUND](5-1-constants.md#hdfql_compound), [HDFQL_REFERENCE](5-1-constants.md#hdfql_reference), or [HDFQL_UNDEFINED](5-1-constants.md#hdfql_undefined) (please refer to [Table 6.3](6-1-data-types.md#table-6-3) for additional information about data types).

### Example(s)

```hdfql
# create an HDF5 dataset named "my_dataset0" of data type enumeration composed of three members named "Paris" (with value 0), "Rome" (with value 1), and "Oslo" (with value 2)
CREATE DATASET my_dataset0 AS ENUMERATION(Paris, Rome, Oslo)

# show (i.e. get) members of dataset "my_dataset0" (should return "Paris", 0, "Rome", 1, "Oslo", 2)
SHOW MEMBER my_dataset0

# create an HDF5 dataset named "my_dataset1" of data type enumeration composed of three members named "red" (with value 0), "green" (with value 5), and "blue" (with value 6)
CREATE DATASET my_dataset1 AS ENUMERATION(red, green AS 5, blue)

# show (i.e. get) members of dataset "my_dataset1" (should return "red", 0, "green", 5, "blue", 6)
SHOW MEMBER my_dataset1

# create an HDF5 attribute named "my_attribute0" of data type enumeration composed of two members named "car" (with value 1000) and "plane" (with value 2000)
CREATE ATTRIBUTE my_attribute0 AS ENUMERATION(car AS 1000, plane AS 2000)

# show (i.e. get) members of attribute "my_attribute0" (should return "car", 1000, "plane", 2000)
SHOW MEMBER my_attribute0

# create an HDF5 dataset named "my_dataset2" of data type compound composed of three members named "person" (of data type variable-length char), "age" (of data type unsigned int), and "weight" (of data type float)
CREATE DATASET my_dataset2 AS COMPOUND(person AS VARCHAR, age AS UNSIGNED INT, weight AS FLOAT)

# show (i.e. get) members of dataset "my_dataset2" (should return "name", "age", "weight") 
SHOW MEMBER my_dataset2

# create an HDF5 attribute named "my_attribute1" of data type compound composed of four members named "id" (of data type long long), "description" (of data type variable-length char), "position" (of data type compound composed of two members named "x" (of data type short), and "y" (of data type short)), and "temperature" (of data type enumeration composed of three members named "cold" (with value 0), "warm" (with value 1), and "hot" (with value 10))
CREATE ATTRIBUTE my_attribute1 AS COMPOUND(id AS BIGINT, description AS VARCHAR, position AS COMPOUND(x AS SMALLINT, y AS SMALLINT), temperature AS ENUMERATION(cold, warm, hot AS 10))

# show (i.e. get) members of attribute "my_attribute1" (should return "id", "description", "position", "position.x", "position.y", "temperature")
SHOW MEMBER my_attribute1
```
