# Convert from hexadecimal string to (B8)

**URL:** <https://techcommunity.softwareag.com/t/convert-from-hexadecimal-string-to-b8/201348>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Adabas-Natural-Cloud\
**Created:** [October 19, 2018, 3:59pm UTC](https://techcommunity.softwareag.com/t/convert-from-hexadecimal-string-to-b8/201348 "2018-10-19T15:59:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Diego](https://techcommunity.softwareag.com/u/Diego)\
**Post date:** [October 19, 2018, 3:59pm UTC](https://techcommunity.softwareag.com/t/convert-from-hexadecimal-string-to-b8/201348/1 "2018-10-19T15:59:30Z")

</div>

Hello, i have a natural string containig an hexadecimal value in character-pair, i mean:

DEFINE DATA LOCAL  
#A (A16)  
#B (B8)  
END-DEFINE  
#A := ‘D0A86BD3431C6000’  
MOVE EDITED #A (EM=H(16)) TO #B \< don’t work

As you can see I would like to restore this hexadecimal string into a B8 field.

When i try move edited above this doesn’t work, how could i handle this?  
Thanks kind regards  
Diego Gazzo

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [October 19, 2018, 4:34pm UTC](https://techcommunity.softwareag.com/t/convert-from-hexadecimal-string-to-b8/201348/2 "2018-10-19T16:34:27Z")

</div>

You were so close.

```auto
MOVE EDITED #A TO #B (EM=H(8))
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:41pm UTC](https://techcommunity.softwareag.com/t/convert-from-hexadecimal-string-to-b8/201348/3 "2021-04-02T15:41:39Z")

</div>


