# Add Fields

**URL:** <https://techcommunity.softwareag.com/t/add-fields/94192>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Basics-on-Linux-Unix-Windows, Adabas-on-Windows-UNIX, Adabas-on-Linux\
**Created:** [July 22, 2010, 4:06pm UTC](https://techcommunity.softwareag.com/t/add-fields/94192 "2010-07-22T16:06:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axt](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Axt](https://techcommunity.softwareag.com/u/Axt)\
**Post date:** [July 22, 2010, 4:06pm UTC](https://techcommunity.softwareag.com/t/add-fields/94192/1 "2010-07-22T16:06:49Z")

</div>

Env: Adabas 6 on Red Hat  
Is it possible to add a new field into a group already defined?

So, if fdt of file10 is:

01,GA  
02,AA,1,A  
02,AB,5,A  
01,CC,10,U  
01,CD,4,A

How can I add a new field at level 2 under GA group ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [July 22, 2010, 8:53pm UTC](https://techcommunity.softwareag.com/t/add-fields/94192/2 "2010-07-22T20:53:11Z")

</div>

not directly.

One technique I used (works with PE’s also):

- modify the standard length of an adjacent field (e.g. change AB from 5 to 10)
- unload/decompress the file
- change FDT to add “02,AC,5,A” after AB
- recompress and reload using the new FDT

If you need to add a numeric field, then have a program populate the new bytes with appropriate data before unloading the file.

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [July 22, 2010, 9:19pm UTC](https://techcommunity.softwareag.com/t/add-fields/94192/3 "2010-07-22T21:19:30Z")

</div>

There is a product from CCA Software Pty Ltd (available through various partners worldwide) called ADAREORG which makes this process easier.

From CCA’s website, they offer an open systems flavour of this product:

[http://www.ccasoftware.com/site/index.php?option=com\_content&task=view&id=40&Itemid=41](http://www.ccasoftware.com/site/index.php?option=com_content&task=view&id=40&Itemid=41)

Hopefully SAG will allow this post to stand since they do not offer a competing product, even though this is in reference to a third party product.

---

<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:58pm UTC](https://techcommunity.softwareag.com/t/add-fields/94192/4 "2021-04-02T14:58:48Z")

</div>


