The HDF_NEWREF function returns the next available reference number for a Hierarchical Data Format file.
Result = HDF_NEWREF( FileHandle )
The HDF file handle returned from a previous call to HDF_OPEN.