# 6.8.10 SET LIBRARY BOUNDS

Part of: [6 Language](6-language.md) › [6.8 Data Miscellaneous Language (DMISCL)](6-8-data-miscellaneous-language-dmiscl.md)

### Syntax

**SET** **LIBRARY** **BOUNDS** {[**FROM** {**EARLIEST** | **LATEST** | **V18** | **V110** | **DEFAULT**}] [**TO** {**LATEST** | **V18** | **V110** | **DEFAULT**}] | **DEFAULT**}

### Description

Set the library bounds[^49] for creating and opening HDF5 files. In other words, this operation sets bounds on the library versions to be used when creating objects (the object format versions are determined indirectly from the HDF5 library versions specified in the call). All files that are subsequently created or opened (through the operations [CREATE FILE](6-4-2-create-file.md) or [USE FILE](6-8-2-use-file.md), respectively) will use the default bound values defined by the HDF5 library or user-defined bound values. These bounds are:

- From – lower bound on the range of possible library versions used to create the object. The library version indirectly specifies the earliest object format version that can be used when creating objects in an HDF5 file. In case the keyword DEFAULT is specified, its value is EARLIEST (i.e. default value defined by the HDF5 library). In case the keyword FROM is not specified (i.e. the lower bound), its current value remains intact.
- To – upper bound on the range of possible library versions used to create the object. The library version indirectly specifies the latest object format version that can be used when creating objects in an HDF5 file. In case the keyword DEFAULT is specified, its value is LATEST (i.e. default value defined by the HDF5 library). In case the keyword TO is not specified (i.e. the upper bound), its current value remains intact.

### Parameter(s)

None

### Return

Nothing

### Example(s)

```hdfql
# set both library bounds from (i.e. lower bound) and to (i.e. upper bound) to default values for subsequent usage (i.e. creating or opening HDF5 files)
SET LIBRARY BOUNDS DEFAULT

# use (i.e. open) an HDF5 file named "my_file0.h5" with library bounds from (i.e. lower bound) and to (i.e. upper bound) set to the earliest and latest versions, respectively (i.e. default values defined by the HDF5 library)
USE FILE my_file0.h5

# set library bound from (i.e. lower bound) to 4 (i.e. HDFQL_VERSION_18) (the library bound to (i.e. upper bound) remains intact) for subsequent usage (i.e. creating or opening HDF5 files)
SET LIBRARY BOUNDS FROM V18

# use (i.e. open) an HDF5 file named "my_file1.h5" with library bounds from (i.e. lower bound) and to (i.e. upper bound) set to version 1.18 and the latest version, respectively
USE FILE my_file1.h5

# set library bound to (i.e. upper bound) to 2 (i.e. HDFQL_VERSION_110) (the library bound from (i.e. lower bound) remains intact) for subsequent usage (i.e. creating or opening HDF5 files)
SET LIBRARY BOUNDS TO V110

# use (i.e. open) an HDF5 file named "my_file2.h5" with library bounds from (i.e. lower bound) and to (i.e. upper bound) set to version 1.8 and version 1.10, respectively
USE FILE my_file2.h5

# set both library bounds from (i.e. lower bound) and to (i.e. upper bound) to default values for subsequent usage (i.e. creating or opening HDF5 files)
SET LIBRARY BOUNDS FROM DEFAULT TO DEFAULT

# use (i.e. open) an HDF5 file named "my_file3.h5" with library bounds from (i.e. lower bound) and to (i.e. upper bound) set to the earliest and latest versions, respectively (i.e. default values defined by the HDF5 library)
USE FILE my_file3.h5
```

[^49]: By default (i.e. upon initialization of the HDFql library), the library bounds from (i.e. lower bound) and to (i.e. upper bound) are set to EARLIEST and LATEST, respectively.
