# Error generating packed field (p(29)) for Cobol copy code

**URL:** <https://techcommunity.softwareag.com/t/error-generating-packed-field-p-29-for-cobol-copy-code/203984>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Add-on-Products, Natural-Predict\
**Created:** [May 27, 2019, 2:44pm UTC](https://techcommunity.softwareag.com/t/error-generating-packed-field-p-29-for-cobol-copy-code/203984 "2019-05-27T14:44:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerardo\_Alvarez1](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@Gerardo\_Alvarez1](https://techcommunity.softwareag.com/u/Gerardo_Alvarez1)\
**Post date:** [May 27, 2019, 2:44pm UTC](https://techcommunity.softwareag.com/t/error-generating-packed-field-p-29-for-cobol-copy-code/203984/1 "2019-05-27T14:44:57Z")

</div>

Trying to generate COBOL copy code, we receive error DIC1818. What is the maximum length for a packed field?. The logical DB staff is trying to generate with fields with P(29). Thanks.

---

<div class="post-metadata">

**Author:** ![Hardy\_Dreesen](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@Hardy\_Dreesen](https://techcommunity.softwareag.com/u/Hardy_Dreesen)\
**Post date:** [May 28, 2019, 9:42am UTC](https://techcommunity.softwareag.com/t/error-generating-packed-field-p-29-for-cobol-copy-code/203984/2 "2019-05-28T09:42:20Z")

</div>

Please see the max length information in the Predict documentation.  
[http://lagoon.hq.sag/snapshots/other/predict/extobjects/gencob.htm#Field\_Format\_and\_COBOL\_Copy\_Code](http://lagoon.hq.sag/snapshots/other/predict/extobjects/gencob.htm#Field_Format_and_COBOL_Copy_Code)

Just a hint: DIC1818 is not an error but a warning

- 

> > > DIC1818 Warning: Format(s) changed ( ’ P ’ → ’ A ')

---

<div class="post-metadata">

**Author:** ![Gerardo\_Alvarez1](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@Gerardo\_Alvarez1](https://techcommunity.softwareag.com/u/Gerardo_Alvarez1)\
**Post date:** [May 28, 2019, 2:17pm UTC](https://techcommunity.softwareag.com/t/error-generating-packed-field-p-29-for-cobol-copy-code/203984/3 "2019-05-28T14:17:33Z")

</div>

Hi There,  
Thank you Dreesen, We must change some file attributes. Let me check it, then I’ll show you the results.

---

<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:42pm UTC](https://techcommunity.softwareag.com/t/error-generating-packed-field-p-29-for-cobol-copy-code/203984/4 "2021-04-02T15:42:51Z")

</div>


