# HANDLE NAT1100 ON A DIALOG!

**URL:** <https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Adabas-Natural-Community-Edition\
**Created:** [December 5, 2012, 11:51am UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864 "2012-12-05T11:51:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PBTECO\_PBTECO](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@PBTECO\_PBTECO](https://techcommunity.softwareag.com/u/PBTECO_PBTECO)\
**Post date:** [December 5, 2012, 11:51am UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/1 "2012-12-05T11:51:03Z")

</div>

HOW COULD I HANDLE NAT1100 ON A DIALOG ?

---

<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:** [December 5, 2012, 1:49pm UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/2 "2012-12-05T13:49:29Z")

</div>

An 1100, as i am sure you know, is a non numeric character in a numeric field.

Are you simply trying to validate a field as it is being entered? If so, in a CHANGE event you could test each character as it is entered. Then alert the user when they enter an invalid character.

Or, you could wait until the dialog was done and test the value in a CLOSE event. Again, with an appropriate action based on what you want the user to do.

steve

---

<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:** [December 5, 2012, 2:44pm UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/3 "2012-12-05T14:44:29Z")

</div>

Whats the difference between a NAT1100 and a NAT0954/S0C7? I’ve always known the latter to be caused when numeric variables/fields contain non-numeric data.

---

<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:** [December 5, 2012, 3:01pm UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/4 "2012-12-05T15:01:22Z")

</div>

A S0C7 is an exception at the machine code level, which usually only happens when packed data gets overwritten or an alpha/binary field is redefined with a P-field and the redefined field contains invalid packed data.

The NAT1100 is a result of a format check following an INPUT.

---

<div class="post-metadata">

**Author:** ![Nikolay\_Kuhta](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Nikolay\_Kuhta](https://techcommunity.softwareag.com/u/Nikolay_Kuhta)\
**Post date:** [December 5, 2012, 5:24pm UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/5 "2012-12-05T17:24:15Z")

</div>

Many-many years ago (should I call it “in the dark dust past”?) a S0C7 also used to be called “program-interruption code 0007 (Data Exception)”  
Wolfgang is absolutely right in my opinion; just a bit of nostalgia 🙂

---

<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:** [December 5, 2012, 8:04pm UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/6 "2012-12-05T20:04:09Z")

</div>

S0C7 is z/OS-speak, “data exception” is the VSE version of it 😉

---

<div class="post-metadata">

**Author:** ![PBTECO\_PBTECO](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@PBTECO\_PBTECO](https://techcommunity.softwareag.com/u/PBTECO_PBTECO)\
**Post date:** [December 15, 2012, 5:57am UTC](https://techcommunity.softwareag.com/t/handle-nat1100-on-a-dialog/101864/7 "2012-12-15T05:57:52Z")

</div>

THANKS MR ROBINSON,MAY I USE (\*ERROR-NR) TO HANDLE IT WITH A MASSAGE,AND HOW COULD I DO IT?

---

<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/handle-nat1100-on-a-dialog/101864/8 "2021-04-02T15:02:38Z")

</div>


