# Committed types in compounds

**URL:** <https://forum.hdfgroup.org/t/committed-types-in-compounds/3272>\
**Category:** Hdf-forum archives\
**Created:** [July 22, 2014, 6:33pm UTC](https://forum.hdfgroup.org/t/committed-types-in-compounds/3272 "2014-07-22T18:33:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Sommerville](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jason\_Sommerville](https://forum.hdfgroup.org/u/Jason_Sommerville)\
**Post date:** [July 22, 2014, 6:33pm UTC](https://forum.hdfgroup.org/t/committed-types-in-compounds/3272/1 "2014-07-22T18:33:53Z")

</div>

Hello,

I've been using committed datatypes to store unit information, etc., in the datatype's attributes. That's all well and good, until I try to put the type in a compound.

I do the following:

1) Create element datatypes  
2) Commit element datatypes  
3) Write attributes on the datatypes  
4) Insert the element datatypes into a compound datatype as members  
5) Create and write a dataset with the compound datatype.

Then, to read  
6) Get the dataset datatype  
7) Get the compound dataset's element types.

Step 7 is where the plan goes awry as the element datatypes read are not reported as being committed, I can't find their named paths, and I can't read their attributes.

Did I do something wrong? Do I have a wrong expectation?

Thanks,  
Jason

> **···**
>
> ---  
> This email is free from viruses and malware because avast! Antivirus protection is active.  
> [http://www.avast.com](http://www.avast.com)
