# Nat0998 internal error X

**URL:** <https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [March 19, 2008, 12:49pm UTC](https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395 "2008-03-19T12:49:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mano1](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@Mano1](https://techcommunity.softwareag.com/u/Mano1)\
**Post date:** [March 19, 2008, 12:49pm UTC](https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395/1 "2008-03-19T12:49:51Z")

</div>

Hi there,

Actually , after changing a small change in a program(added an where clause in a Find statement) we tried running it in batch,we get Nat0998 internal error X followed by Nat9978 error occurred during execution/compilation.(in Production)

we actually tried to flush the Global buffer pool and tried again.But it didn’t work.

Kindly can anyone suggest a solution for this.

Many thanks in advance  
Manonmani

---

<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:** [March 19, 2008, 9:09pm UTC](https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395/2 "2008-03-19T21:09:12Z")

</div>

Do we get to see the code, or are we supposed to guess?

steve

---

<div class="post-metadata">

**Author:** ![Mano1](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@Mano1](https://techcommunity.softwareag.com/u/Mano1)\
**Post date:** [March 20, 2008, 10:07am UTC](https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395/3 "2008-03-20T10:07:23Z")

</div>

Dear Steve,

Im sending it to your mail ID.

Thanks & Regards,  
Manonmani

---

<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:** [March 20, 2008, 3:59pm UTC](https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395/4 "2008-03-20T15:59:33Z")

</div>

Mano; you need to post what you sent me (and more, see below) on the forum, so other people can see it.

Here is the code Mano sent:

FIND (1) PEREF-PE WITH S7-RT-PERS-NO = #PRSN-S7-KEY  
WHERE STAT-AUTH(PRSN-PAY.) = ‘A’

Where to start. Is PEREF-PE a file name or a View Name? If a View Name, can we please see the view? If it is very large, just the entries for the fields in the FIND would be okay.

What do you think the WHERE clause is doing? STAT-AUTH, with a label reference back to some other loop has nothing to do with the records you are reading via the FIND. Could we see the code that is part of PRSN-PAY. ? Is it a FIND, READ, HISTOGRAM ??

The code you have above could probably be re-written as:

IF STAT-AUTH(PRSN-PAY.) = ‘A’  
FIND (1) PEREF-PE WITH S7-RT-PERS-NO = #PRSN-S7-KEY

But without knowing more about PRSN-PAY. and STAT-AUTH and the views, I am just guessing.

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, 2:49pm UTC](https://techcommunity.softwareag.com/t/nat0998-internal-error-x/76395/5 "2021-04-02T14:49:16Z")

</div>


