# Natural error 0937 Wrong array derfined in param

**URL:** <https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Utilities\
**Created:** [June 6, 2013, 10:30am UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355 "2013-06-06T10:30:17Z")\
**Posts on this page:** 8\
**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:** [June 6, 2013, 10:30am UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/1 "2013-06-06T10:30:17Z")

</div>

How do you determine exactly which field in PDA is causing this error.

SE55XR1N 0230 NAT0937 Wrong array defined in param. 33 (Subprogram SE55XRAN

SE55XR1N  
0120 PARAMETER USING SE–NØAA /\* Masterareal til police-nøgler PN  
0130 PARAMETER USING ZXINFOPA /\* Standard fejlareal  
0140 LOCAL USING N3AMACCA /\*  
0160 LOCAL USING SE55XRAA /\* XR  
0170 END-DEFINE  
0180 \*  
0230 CALLNAT ‘SE55XRAN’ PN XR N3AMACCA ZXINFOPA

SE55XRAN  
0140 PARAMETER USING SE–NØAA /\* Masterareal til police-nøgler  
0150 PARAMETER USING SE55XRAA /\* Multiacces til dækning på forsikringssted  
0160 PARAMETER USING N3AMACCA /\* Multiaccess styring  
0170 PARAMETER USING ZXINFOPA /\* Standard fejlareal

SE–NØAA  
0070 1 PN  
0080 2 PN-INTERN-IX (I4)  
0090 2 XL-ANTAL-BYTES (I2)  
0100 2 STYRING-B8 (B8)  
0110 2 STYRING-A16 (A16)  
0120 2 XL-BYTES (A1/1:2931)  
0130 2 REDEFINE XL-BYTES  
0140 3 XL-DATA-S  
0150 4 INSTRUKTION (A8)  
0160 4 OBJEKT-TYPE (A4) /\* NØGLE  
0170 4 OBJEKT-NR (N4) /\* NØGLE  
0180 4 OBJEKT-NIVEAU1 (P3) /\* NØGLE  
0190 4 OBJEKT-NIVEAU2 (P3) /\* NØGLE  
0200 4 OBJEKT-NIVEAU3 (P3) /\* NØGLE  
0210 4 CELLE-NR (N3) /\* NØGLE  
0220 4 DÆKNING-TYPE (A4) /\* NØGLE  
0230 4 TEKST-TYPE (A4) /\* NØGLE  
0240 4 TEKST-NR (A4) /\* NØGLE  
0250 4 OBJEKT-REF-NR (N4) /\* NØGLE  
0260 4 PRODUKT-TYPE (A4) /\* NØGLE  
0270 4 ISN-NR (N10) /\* NØGLE  
0280 4 NØGLE-ID (A4/1:7) /\* FRIE NØGLER  
0290 4 NØGLE-VÆRDI (A20/1:7) /\* FRIE NØGLER  
0300 4 ACCES (B8) /\* “FLEMMINGS” ACCES AREAL  
0310 4 NØ-NØGLE (B8) /\* DEDIKEREDE NØGLER BRANCHE  
0320 4 WA-NØGLE (B8) /\* ADVARSLER  
0330 4 GOH-NØGLE (B8) /\* HURTIGAREAL OBJEKTER  
0340 4 OTH-NØGLE (B8) /\* HURTIGAREAL OBJEKT TYPER  
0350 4 GDH-NØGLE (B8) /\* HURTIGAREAL DÆKNINGER  
0360 4 DTH-NØGLE (B8) /\* HURTIGAREAL DÆKNING TYPE  
0370 4 SDGY-NØGLE (B8) /\* SIDST GYLDIGE FORSIKRING  
0380 4 VAGL-NØGLE (B8) /\* UDSEENDE VED START AF BEH.  
0390 4 RESTART-NØGLE (B8) /\* Nøgle til Restartareal  
0400 4 FORS-IDENT (N13)  
0410 4 REDEFINE FORS-IDENT  
0420 5 FGR (N3)  
0430 5 REDEFINE FGR  
0440 6 GRUPPE-TJM-FGR (A1) /\*  
0450 6 BRANCHE-TEGN (A2) /\* TO SIDSTE CIFFRE I FGR  
0460 5 POL (N10)  
0470 5 REDEFINE POL  
0480 6 POL-A (A10)  
0490 4 SDTRANSA-A16 (A16) /\* NØGLEN TIL DOP’S NØGLER  
0500 4 VALG-KODE (A1) /\* POLICE/TILBUD/IGANG/REGNEM.

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [June 6, 2013, 12:42pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/2 "2013-06-06T12:42:26Z")

</div>

Hi Dion,

For it it looks like one of the PDA’s has been changed since the subprog was compiled!

My first step would be to check timestamps on PDAs and subprog.  
Finn

---

<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 6, 2013, 12:56pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/3 "2013-06-06T12:56:12Z")

</div>

The 33rd parameter is in error.

HOWEVER, counting to 33 can be tricky. REDEFINES and Group Names do not count.

For example, here is a program:

DEFINE DATA LOCAL  
1 #GROUP-A  
2 #A1 (A3)  
2 #N1 (N5)  
2 REDEFINE #N1  
3 #A2 (A5)  
1 #AA (A3)  
1 #AB (A2)  
END-DEFINE  
\*  
CALLNAT ‘LINK020’ #GROUP-A #AA #AB  
END

and here is the subprogram:

DEFINE DATA PARAMETER  
1 #GROUP-A  
2 #A1 (A3)  
2 #N1 (N5)  
2 REDEFINE #N1  
3 #A2 (A5)  
1 #AA (A3)  
1 #AB (A4)  
END-DEFINE  
\*  
WRITE ‘HI’  
END

The error message point to Parameter 4.  
GROUP-A does not count.  
#A1 and #N1 count  
#A2 does not count  
#AA counts  
#ab (the error) counts

So, count down 33 “real” variables.

As Finn said, it is probably a PDA that is out of synch.

---

<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:** [June 6, 2013, 1:05pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/4 "2013-06-06T13:05:16Z")

</div>

Hi again.

Thanks for the answers.

Programs and PDA has not been changed since april.

We have removed this 3 items from the bufferpool, and now everything is working again. Something must have corrupted the bufferpool.  
I don’t anyone has a quick answer to that 😃

---

<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 6, 2013, 3:49pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/5 "2013-06-06T15:49:04Z")

</div>

Someone was using an older, or newer, version of one of the three, which was in the buffer pool.  
If this is the case, you may see this recurring.

---

<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 6, 2013, 4:05pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/6 "2013-06-06T16:05:32Z")

</div>

Note that PN has only five arguments being passed (lines 0080-0120 of SE–NOAA). Count up the arguments in SE55XRAA, and, if necessary, N3AMACCA and ZXINFOPA. This may give you some clues to where the problem really is; that is, which data area is causing the problem.

---

<div class="post-metadata">

**Author:** ![Karthik\_G4](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/karthik_g4/32/21634_2.png) [@Karthik\_G4](https://techcommunity.softwareag.com/u/Karthik_G4)\
**Post date:** [August 1, 2017, 2:47pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/7 "2017-08-01T14:47:58Z")

</div>

Got some similar error NAT0937,

As said by Steve, tried searching the parameter where it got error,  
Finally found the issue with the View that was defined,

its a compilation problem, got fixed when i recompiled the modules in order.

---

<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:28pm UTC](https://techcommunity.softwareag.com/t/natural-error-0937-wrong-array-derfined-in-param/171355/8 "2021-04-02T15:28:55Z")

</div>


