# DISPLAY of COMP-3 field

**URL:** <https://techcommunity.softwareag.com/t/display-of-comp-3-field/60905>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [May 3, 2006, 1:49pm UTC](https://techcommunity.softwareag.com/t/display-of-comp-3-field/60905 "2006-05-03T13:49:57Z")\
**Posts on this page:** 3\
**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 3, 2006, 1:49pm UTC](https://techcommunity.softwareag.com/t/display-of-comp-3-field/60905/1 "2006-05-03T13:49:57Z")

</div>

Hi all,

In the ADABAS file desired field is defined in PACKED format as shown below.  
3 2 PCR-ID P 9.0

I want to see the value of PCR-ID.

For this I red the above file in Natural program.  
After reading this file i used DISPLAY statement to see the value of PCR-ID. but i am getting only 5 digits.  
please let me know why it is happening.

or suggest me other technique to see the value of PACKED format fields.

---

<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 3, 2006, 2:08pm UTC](https://techcommunity.softwareag.com/t/display-of-comp-3-field/60905/2 "2006-05-03T14:08:42Z")

</div>

What does your DISPLAY statement look like ?  
And what its output ?

If the field contains just 5 “significant digits” and leading zeroes, DISPLAY will just print the 5 digits unless you use an edit mask asking for leading zeroes to be printed, e.g. (EM=999999999)

---

<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-of-comp-3-field/60905/3 "2021-04-02T14:40:37Z")

</div>


