# NAT1106 Field to long

**URL:** <https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [January 8, 2015, 2:52pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024 "2015-01-08T14:52:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dion\_Kejlberg](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dion_kejlberg/32/525_2.png) [@Dion\_Kejlberg](https://techcommunity.softwareag.com/u/Dion_Kejlberg)\
**Post date:** [January 8, 2015, 2:52pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024/1 "2015-01-08T14:52:32Z")

</div>

ERROR-LINE is the INPUT statement, but there are no information regarding which field.  
You get a hint with actual length and the length available on the screen.

Any ideas on how to find the field-name ?

---

<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:** [January 8, 2015, 3:03pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024/2 "2015-01-08T15:03:13Z")

</div>

Strange, the error message says:

## NAT1106 Value (length :2:) too long for input field (length :1:).

TEXT:  
Value (length …) too long for input field (length …).  
EXPL:  
The data string entered for a field in delimiter mode is  
longer than the internal length definition of the field.  
ACTN:  
Enter a data string of correct length.

So it should be telling you the field in the error message. I would look at the data string and look for “misplaced” or missing delimiters.

---

<div class="post-metadata">

**Author:** ![Dion\_Kejlberg](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dion_kejlberg/32/525_2.png) [@Dion\_Kejlberg](https://techcommunity.softwareag.com/u/Dion_Kejlberg)\
**Post date:** [January 8, 2015, 4:21pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024/3 "2015-01-08T16:21:46Z")

</div>

Have tried to debug and display variables, but found no fields that looked suspicius.

How do I identify ‘delimiter mode’ ? Found an N3,2 with EM = ^999,99  
The map editor shows the field as ?MMMMMM. Could the result of this EM be more than the 6 chars available if the value is 123,45 or -543,21 ?

---

<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:** [January 8, 2015, 9:27pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024/4 "2015-01-08T21:27:17Z")

</div>

Delimiter Mode could have been invoked by a GLOBALS or SET GLOBALS statement. They would have IM=D.

Could you describe what is happening in the program? Is this actually a Map on which a user is entering data?  
Or is it an INPUT statement which is getting its value from the Stack? If the latter, could you show us the input strings on the stack.

---

<div class="post-metadata">

**Author:** ![Mick\_Fitzpatrick](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Mick\_Fitzpatrick](https://techcommunity.softwareag.com/u/Mick_Fitzpatrick)\
**Post date:** [January 14, 2015, 4:15pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024/5 "2015-01-14T16:15:50Z")

</div>

If it is an INPUT statement rather than a map you can change your INPUT to something like

INPUT #FIELD1 #FIELD2 etc

Where each field is defined as A100 or whatever so that each is bigger than necessary to hold each data element - thus avoiding the 1106

then after the INPUT do a STACK of each element in turn followed by an INPUT for each element in turn but this time into the original variables that were in your ‘real’ INPUT statement. Whichever line it abends on is then the field that had the 1106 problem.

---

<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:32pm UTC](https://techcommunity.softwareag.com/t/nat1106-field-to-long/180024/6 "2021-04-02T15:32:39Z")

</div>


