# RESET statement

**URL:** <https://techcommunity.softwareag.com/t/reset-statement/61990>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples\
**Created:** [February 20, 2007, 2:18pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990 "2007-02-20T14:18:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Earkkai](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@Earkkai](https://techcommunity.softwareag.com/u/Earkkai)\
**Post date:** [February 20, 2007, 2:18pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/1 "2007-02-20T14:18:12Z")

</div>

Hi,

Is there an equivalent for RESET statement?

Regards,  
Earkkai

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [February 20, 2007, 3:19pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/2 "2007-02-20T15:19:47Z")

</div>

AFAIK: No!  
But why do you want to use an equivalent for RESET?

---

<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:** [February 20, 2007, 5:56pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/3 "2007-02-20T17:56:54Z")

</div>

What do you mean by an “equivalent”. You can MOVE or ASSIGN appropriate null values to a variable. However, RESET is nice in that you do not have to specify the appropriate null value; Natural knows the appropriate value. Thus, in a single RESET statement you can have both alpha and numeric fields; the former will receive blanks, the latter zeroes.

steve

---

<div class="post-metadata">

**Author:** ![Earkkai](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@Earkkai](https://techcommunity.softwareag.com/u/Earkkai)\
**Post date:** [February 21, 2007, 4:54pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/4 "2007-02-21T16:54:03Z")

</div>

I am working on a Tool which parses Natural programs… It gives problem when RESET comes within some loop structures.

Thanks.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [February 21, 2007, 10:48pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/5 "2007-02-21T22:48:04Z")

</div>

Sorry, but I don’t understand your problem. ☹ Why should RESET cause a problem within a loop structure? And how can an “equivalent” help you?

Of course you should not reset your counter-variable in a for-loop (unless you know what you’re doing)…

---

<div class="post-metadata">

**Author:** ![Karlheinz\_Kronauer](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/karlheinz_kronauer/32/134_2.png) [@Karlheinz\_Kronauer](https://techcommunity.softwareag.com/u/Karlheinz_Kronauer)\
**Post date:** [February 27, 2007, 2:25pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/6 "2007-02-27T14:25:40Z")

</div>

Yo can use the tool from Software AG Natural Engineer, who parses  
Natural code as well and more and dont have any problem with the Reset statement.

---

<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:41pm UTC](https://techcommunity.softwareag.com/t/reset-statement/61990/7 "2021-04-02T14:41:04Z")

</div>

Closed on April 2, 2021, 2:41pm UTC


