# Numeric Format in Adabas

**URL:** <https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Basics-on-Linux-Unix-Windows, Adabas-on-Windows-UNIX, Adabas-on-Linux\
**Created:** [August 14, 2012, 5:49pm UTC](https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216 "2012-08-14T17:49:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [August 14, 2012, 5:49pm UTC](https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216/1 "2012-08-14T17:49:17Z")

</div>

Hi,  
can i define decimal format or date format in Adabas?

In Natural i have:  
DATE = D  
Decimal = P12.2

But in Adabas can i do this?

---

<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:** [August 14, 2012, 7:30pm UTC](https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216/2 "2012-08-14T19:30:16Z")

</div>

D fields map to P7, where did you get P12.2 from ?

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [August 14, 2012, 7:47pm UTC](https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216/3 "2012-08-14T19:47:13Z")

</div>

Sorry.

In Natural i have numeric-decimal P12.2 or N12.2 for example SALARY … 12500.00

for Adabas  
how do numeric with decimal format?

---

<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:** [August 14, 2012, 8:05pm UTC](https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216/4 "2012-08-14T20:05:15Z")

</div>

You only define the format (P or U) and the byte length (e.g. P12.2 = 8 bytes) in the FDT,  
the mapping / interpretation is done by the application (e.g. Natural)

---

<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:02pm UTC](https://techcommunity.softwareag.com/t/numeric-format-in-adabas/101216/5 "2021-04-02T15:02:18Z")

</div>


