# Displaying HEX value

**URL:** <https://techcommunity.softwareag.com/t/displaying-hex-value/61090>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 7, 2006, 11:07pm UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090 "2006-06-07T23:07:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vallish](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Vallish](https://techcommunity.softwareag.com/u/Vallish)\
**Post date:** [June 7, 2006, 11:07pm UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090/1 "2006-06-07T23:07:47Z")

</div>

Hi Forum-mates,

I tried to look up on the docs but couldn’t find. I want to know how to display a HEX value of a variable in natural code.

cheers  
Vallish

---

<div class="post-metadata">

**Author:** ![Daniel\_Wilson](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Daniel\_Wilson](https://techcommunity.softwareag.com/u/Daniel_Wilson)\
**Post date:** [June 8, 2006, 12:27am UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090/2 "2006-06-08T00:27:17Z")

</div>

Use the hex edit mask:

```auto
DEFINE DATA LOCAL
1 #A (A8)
END-DEFINE
*
INPUT #A
*
DISPLAY #A (EM=HHHHHHHH)
*
END
```

---

<div class="post-metadata">

**Author:** ![Venkatesan\_Devaraj1](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@Venkatesan\_Devaraj1](https://techcommunity.softwareag.com/u/Venkatesan_Devaraj1)\
**Post date:** [June 8, 2006, 1:44pm UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090/3 "2006-06-08T13:44:58Z")

</div>

Example is available in ’ Natural - Programming guide’ and the program name is EDITMX03.

---

<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:** [June 8, 2006, 2:06pm UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090/4 "2006-06-08T14:06:33Z")

</div>

> [@Venkatesan Devaraj](#):
>
> Example is available in ’ Natural - Programming guide’ and the program name is EDITMX03.

And in the example library SYSEXPG

---

<div class="post-metadata">

**Author:** ![Vallish](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Vallish](https://techcommunity.softwareag.com/u/Vallish)\
**Post date:** [June 15, 2006, 9:57pm UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090/5 "2006-06-15T21:57:55Z")

</div>

Thank you all .

---

<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, 2:40pm UTC](https://techcommunity.softwareag.com/t/displaying-hex-value/61090/6 "2021-04-02T14:40:41Z")

</div>


