# Dictionary with single key

**URL:** <https://forum.kx.com/t/dictionary-with-single-key/7767>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [June 6, 2012, 2:40pm UTC](https://forum.kx.com/t/dictionary-with-single-key/7767 "2012-06-06T14:40:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak1](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Deepak1](https://forum.kx.com/u/Deepak1)\
**Post date:** [June 6, 2012, 2:40pm UTC](https://forum.kx.com/t/dictionary-with-single-key/7767/1 "2012-06-06T14:40:00Z")

</div>

Hi, I want to create a dictionaary with single key but facing someerror…e.g. A:`:hostname:5001 d:`handler!A `type errorBut, It is easy to do with other key...e.g. A:`:hostname:5001 d:`handler`port!(A;`8000) Can someone please help on this.Thanks in Advanced.

---

<div class="post-metadata">

**Author:** ![TerryLynch1](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@TerryLynch1](https://forum.kx.com/u/TerryLynch1)\
**Post date:** [June 6, 2012, 2:44pm UTC](https://forum.kx.com/t/dictionary-with-single-key/7767/2 "2012-06-06T14:44:00Z")

</div>

Hi,?

you would need to enlist in the single item case.?

d:(enlist `handler)!enlist A

Terry

---

<div class="post-metadata">

**Author:** ![effbiae](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@effbiae](https://forum.kx.com/u/effbiae)\
**Post date:** [June 6, 2012, 2:45pm UTC](https://forum.kx.com/t/dictionary-with-single-key/7767/3 "2012-06-06T14:45:00Z")

</div>

charset=us-ascii  
X-Mailer: iPhone Mail (9B179)  
In-Reply-To: \<6aaba358-ff0e-43a8-921e-32ee7f4381fb@p27g2000vbl.googlegroups.com\>  
Message-Id: \<2EC4B176-0BD7-45E1-A200-EE39495FF5B0@gmail.com\>  
Date: Wed, 6 Jun 2012 23:45:33 +1000  
To: “[personal-kdbplus@googlegroups.com](mailto:personal-kdbplus@googlegroups.com)”   
  
Mime-Version: 1.0 (1.0)  
  
Enlist the scalar values on each side of the bang. =20
