# Content of CVs

**URL:** <https://techcommunity.softwareag.com/t/content-of-cvs/79443>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [November 10, 2008, 5:33pm UTC](https://techcommunity.softwareag.com/t/content-of-cvs/79443 "2008-11-10T17:33:10Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [November 10, 2008, 5:33pm UTC](https://techcommunity.softwareag.com/t/content-of-cvs/79443/1 "2008-11-10T17:33:10Z")

</div>

Hello all!

For debugging purposes I want to display the content of a CV in human readable format (e.g. “AD=B CD=YE MODIFIED”). Since there’s no IF #CV = (AD=B) in Natural, I have to do this on my own.

The only thing mentioned in Natural’s documentation is the fact that a variable of type (C) has 2 Byte internally.

By hexdumping some CVs I found out the following:  
The 1st half byte contains the attribute definition (parameter AD)  
The 2nd half byte contains the modification flag  
The 3rd half byte contains the color (parameter CD)  
The 4th half byte contains the print mode (parameter PM)

Does anybody know more?

Thanks,

Matthias

---

<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:** [November 10, 2008, 6:57pm UTC](https://techcommunity.softwareag.com/t/content-of-cvs/79443/2 "2008-11-10T18:57:15Z")

</div>

Sorry! Wrong Forum. :oops:  
Should be: Natural Basics on Open Systems

---

<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:** [November 13, 2008, 9:09pm UTC](https://techcommunity.softwareag.com/t/content-of-cvs/79443/3 "2008-11-13T21:09:15Z")

</div>

Meanwhile I found out:

first 3 bits:  
001 → (AD=B)  
010 → (AD=I)  
011 → (AD=N)  
100 → (AD=V)  
101 → (AD=U)  
110 → (AD=C)

if bit 4 and 6 is set → (AD=P)

if bit 8 is set → MODIFIED

bit 10-12  
001 → (CD=BL)  
010 → (CD=GR)  
011 → (CD=TU)  
100 → (CD=RE)  
101 → (CD=PI)  
110 → (CD=YE)  
111 → (CD=NE)

if bit 14 is set → (PM=I)  
if bit 15 is set → (PM=N)

unknown bits: 7, 9, 16

---

<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:51pm UTC](https://techcommunity.softwareag.com/t/content-of-cvs/79443/4 "2021-04-02T14:51:07Z")

</div>


