# Reset array using !

**URL:** <https://techcommunity.softwareag.com/t/reset-array-using/98453>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, Natural-on-Windows-Unix\
**Created:** [September 22, 2011, 4:15pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453 "2011-09-22T16:15:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olav\_Christiansen](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Olav\_Christiansen](https://techcommunity.softwareag.com/u/Olav_Christiansen)\
**Post date:** [September 22, 2011, 4:15pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/1 "2011-09-22T16:15:48Z")

</div>

Hi there. New on this forum (but old on Nat/Adabas).

I’ve come across this syntax in an example source code:

RESET MY-ARRAY(!)

I haven’t seen ! used that way before. What does it mean? Is this similar to \*?

---

<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:** [September 22, 2011, 7:35pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/2 "2011-09-22T19:35:56Z")

</div>

```auto
define data local
01 #my-array(A1/1:2) init <'B','C'>
end-define
reset #my-array(!) /* NAT0280 here
end
```

… doesn’t work on my natural 6.3.9 @ Windows

---

<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:** [September 22, 2011, 7:41pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/3 "2011-09-22T19:41:50Z")

</div>

I haven’t seen anything like this before either.

Can you provide a bit more information ?

- does it actually WORK when you run it ?
- report mode / structured mode ?
- definition of MY-ARRAY ?

---

<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:** [September 22, 2011, 7:43pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/4 "2011-09-22T19:43:46Z")

</div>

Perhaps it has been through a code page conversion that did not handle the special characters well?

---

<div class="post-metadata">

**Author:** ![Olav\_Christiansen](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Olav\_Christiansen](https://techcommunity.softwareag.com/u/Olav_Christiansen)\
**Post date:** [September 22, 2011, 11:59pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/5 "2011-09-22T23:59:00Z")

</div>

Thank you for the answers. I haven’t seen this running anywhere, but was asked a question about it by a customer. Yes, this could actually just have to do with a bad conversion, but I would like to rule out that this was in fact valid code.

---

<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:** [September 23, 2011, 12:12am UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/6 "2011-09-23T00:12:42Z")

</div>

I’ve been using Natural since the transition from 1.2 to 2.1,  
and I don’t think it’s ever been valid syntax …

Either way, do you know more details, like report/structured mode,  
how’s MY-ARRAY defined ?

---

<div class="post-metadata">

**Author:** ![Olav\_Christiansen](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Olav\_Christiansen](https://techcommunity.softwareag.com/u/Olav_Christiansen)\
**Post date:** [September 23, 2011, 12:51am UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/7 "2011-09-23T00:51:38Z")

</div>

> [@Wolfgang Winter](#):
>
> I’ve been using Natural since the transition from 1.2 to 2.1,  
> and I don’t think it’s ever been valid syntax …
> 
> Either way, do you know more details, like report/structured mode,  
> how’s MY-ARRAY defined ?

No, but when I get on site some time next week, I’ll find out. Thanks.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 23, 2011, 1:31am UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/8 "2011-09-23T01:31:40Z")

</div>

> [@](#):
>
> RESET MY-ARRAY(!)

This syntax has never been valid.

When I became a SAG customer, I was sold on version 1, but was asked to wait for the imminent release of Natural 1.1. Array processing was introduced in version 2. Prior to that we suffered with MOVE INDEXED.

---

<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:** [September 23, 2011, 4:20pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/9 "2011-09-23T16:20:20Z")

</div>

I agree with Mogens that some sort of code page conversion may be at the root of this anomaly. There is another similar possibility, font conversion. I have seen some pretty strange things when switching fonts, although I would expect the “standard” special characters would come through unscathed.

steve

---

<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:** [September 23, 2011, 4:21pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/10 "2011-09-23T16:21:20Z")

</div>

I agree with Mogens that some sort of code page conversion may be at the root of this anomaly. There is another similar possibility, font conversion. I have seen some pretty strange things when switching fonts, although I would expect the “standard” special characters would come through unscathed.

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:** [April 2, 2021, 3:00pm UTC](https://techcommunity.softwareag.com/t/reset-array-using/98453/11 "2021-04-02T15:00:59Z")

</div>

Closed on April 2, 2021, 3:00pm UTC


