# Dynamic in DDM

**URL:** <https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Natural-on-Windows-Unix\
**Created:** [June 29, 2007, 12:51pm UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911 "2007-06-29T12:51:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelenHue](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@HelenHue](https://techcommunity.softwareag.com/u/HelenHue)\
**Post date:** [June 29, 2007, 12:51pm UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911/1 "2007-06-29T12:51:37Z")

</div>

I like to create a DDM with datatype ‘Binary’ and Length ‘Dynamic’. But it can’t? :?:  
DDM cannot has length dynamic??

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [June 29, 2007, 2:37pm UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911/2 "2007-06-29T14:37:25Z")

</div>

DYNAMIC just applies to user defined variables.

DDM’s are basically “shopping lists” for Natural when it calls Adabas (that is, the fields it wants to read from a record). DDM’s also reserve memory locations in Natural to hold values of fields in records.

Within a Natural program, you can basically do anything with a database field that you can do with a user defined variable.

HOWEVER, since Adabas does not permit DYNAMIC variables, Natural cannot attempt to interface with Adabas using DYNAMIC variables.

steve

---

<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:** [June 29, 2007, 6:35pm UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911/3 "2007-06-29T18:35:53Z")

</div>

> [@HelenHue](#):
>
> I like to create a DDM with datatype ‘Binary’ and Length ‘Dynamic’. But it can’t? :?:  
> DDM cannot has length dynamic??

For Natural 4.1 and above, simply put a B in the ‘F’(ormat) column and enter the text ‘DYNAMIC’ in the ‘Leng’ column.

---

<div class="post-metadata">

**Author:** ![HelenHue](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@HelenHue](https://techcommunity.softwareag.com/u/HelenHue)\
**Post date:** [July 2, 2007, 8:32am UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911/4 "2007-07-02T08:32:30Z")

</div>

> [@Wolfgang Winter](#):
>
> For Natural 4.1 and above, simply put a B in the ‘F’(ormat) column and enter the text ‘DYNAMIC’ in the ‘Leng’ column.

I’m using Natural 6.2.2. By entering ‘DYNAMIC’ in the ‘Leng’ column, it shows “Error in ‘Length’ Detected”. Any ideas?

---

<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:** [July 2, 2007, 4:48pm UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911/5 "2007-07-02T16:48:18Z")

</div>

> [@HelenHue](#):
>
> I’m using Natural 6.2.2. By entering ‘DYNAMIC’ in the ‘Leng’ column, it shows “Error in ‘Length’ Detected”. Any ideas?

Sorry for that, I only tried Nat 6.2.3 on Windows after I posted my answer, and of course you are right, it doesn’t work. But it should, according to the documentation, so this needs to be reported & fixed.

---

<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:48pm UTC](https://techcommunity.softwareag.com/t/dynamic-in-ddm/74911/6 "2021-04-02T14:48:29Z")

</div>


