# Session/Profile Parameter to avoid NAT0935 and NAT0936 ?

**URL:** <https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [July 24, 2008, 7:47pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626 "2008-07-24T19:47:42Z")\
**Posts on this page:** 9\
**Page:** 1

<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:** [July 24, 2008, 7:47pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/1 "2008-07-24T19:47:42Z")

</div>

Hello all!

Somebody told me today, that Natural has a session/profile parameter for checking parameters of subprograms at compile time - to avoid NAT0935 and NAT0936 at runtime.

I read the documentation and didn’t find a hint. Is there such a parameter? I’ve never head about it. I think NAT0935 and NAT0936 are pure runtime errors.

Does anybody know something about that parameter?

Thanks!

Matthias

---

<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:** [July 24, 2008, 8:08pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/2 "2008-07-24T20:08:42Z")

</div>

Take a look at the PCHECK parameter.

---

<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:** [July 24, 2008, 8:23pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/3 "2008-07-24T20:23:40Z")

</div>

You live and learn… 🙂

Thanks for the prompt reply.

---

<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:** [July 24, 2008, 8:36pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/4 "2008-07-24T20:36:28Z")

</div>

Sorry again, but I can’t find out how to change this option…

The documentation talks about two things:

1. The parameter module. But in NATPARM I got some compiler options like SM, DBSHORT etc. - but no PCHECK.
2. The compilations options screen (called in natural via COMPOPT). There’s also no PCHECK-Option.

I’m using NAT 6.1.1.21 @ WinXP

Any ideas?

---

<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:** [July 24, 2008, 9:20pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/5 "2008-07-24T21:20:26Z")

</div>

I’m using 6.3, where PCHECK is available in the configuration utility (NATPARMS) and in the compiler options (COMPOPT).

---

<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:** [July 24, 2008, 9:43pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/6 "2008-07-24T21:43:26Z")

</div>

Even if I export the NATPARM as “NATPARM.LST” …

```auto
[COMPOPT]
 
DBSHORT = ON
ENDIAN = DEFAULT
GFID = ON
THSEP = OFF
PSIGNF = OFF
[COMPOPT-END]
```

BTW: It’s the same on our Nat 6.1.1.22 on Solaris.

Strange…

---

<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:** [July 24, 2008, 9:45pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/7 "2008-07-24T21:45:46Z")

</div>

> [@Matthias](#):
>
> Even if I export the NATPARM as “NATPARM.LST” …

OK, maybe natparm exports the non-defaults only…

Here’s a list of my compiler options on NAT 6.1.1 @ WinXP:

CO  
DBSHORT  
DSLM  
DU  
FS  
KC  
SM  
SYMGEN  
SYNERR  
THSEP  
TQ  
PSIGNF  
ENDIAN  
GFID  
XREF

… but in the documentation, I can find more options like KCHECK, PCHECK, etc…

---

<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:** [August 12, 2008, 12:06am UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/8 "2008-08-12T00:06:38Z")

</div>

Today I got some time to install the community-Version of Natural (6.3.2) at my home PC (Win 2K). Here I found a PCHECK-Parameter.

If I stow a program with wrong parameters, I get a NAT0648 now.

But I don’t get this error if I change the Subprogram’s parameter - here I would still get a NAT0935 or NAT0936 at runtime.

---

<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:50pm UTC](https://techcommunity.softwareag.com/t/session-profile-parameter-to-avoid-nat0935-and-nat0936/78626/9 "2021-04-02T14:50:40Z")

</div>


