# display

**URL:** <https://techcommunity.softwareag.com/t/display/60923>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [May 4, 2006, 4:25pm UTC](https://techcommunity.softwareag.com/t/display/60923 "2006-05-04T16:25:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suam](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suam](https://techcommunity.softwareag.com/u/suam)\
**Post date:** [May 4, 2006, 4:25pm UTC](https://techcommunity.softwareag.com/t/display/60923/1 "2006-05-04T16:25:15Z")

</div>

could anyone help me in displaying a PACKED format VIEW-CODE-ID variable in NATURAL program.

My variable VIEW-CODE-ID is defined like this in the file.  
1 1 VIEW-CODE-ID A 6.0 D ZA N  
Field is defined as unique  
2 RE 1 VIEW-CODE-ID

3 2 VIEW-CODE A 1.0  
4 2 PRODUCT-CODE P 9.0

I tried to display VIEW-CODE-ID directly, i am getting the display as

Ekn?9

Pkn?9  
…  
…

Please help in this regard.

---

<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:** [May 4, 2006, 4:54pm UTC](https://techcommunity.softwareag.com/t/display/60923/2 "2006-05-04T16:54:04Z")

</div>

This is what you have to expect when DISPLAYing an Alpha field which is redefined and contains binary data :!:

The only way to get a meaningful display in that case is

```auto
DISPLAY VIEW-CODE-ID (EM=H(6))
```

---

<div class="post-metadata">

**Author:** ![suam](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@suam](https://techcommunity.softwareag.com/u/suam)\
**Post date:** [May 4, 2006, 6:50pm UTC](https://techcommunity.softwareag.com/t/display/60923/3 "2006-05-04T18:50:47Z")

</div>

Thank you very much, it worked.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [May 4, 2006, 6:55pm UTC](https://techcommunity.softwareag.com/t/display/60923/4 "2006-05-04T18:55:32Z")

</div>

> [@Wolfgang Winter](#):
>
> The only way to get a meaningful display in that case is
> 
> ```auto
> DISPLAY VIEW-CODE-ID (EM=H(6))
> ```

or

```auto
DISPLAY PRODUCT-CODE
```

😉

---

<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/display/60923/5 "2021-04-02T14:40:37Z")

</div>


