# callnat with long list of parameters

**URL:** <https://techcommunity.softwareag.com/t/callnat-with-long-list-of-parameters/79240>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples, Inside-Natural-and-Performance-Hints\
**Created:** [October 11, 2008, 11:09am UTC](https://techcommunity.softwareag.com/t/callnat-with-long-list-of-parameters/79240 "2008-10-11T11:09:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [October 11, 2008, 11:09am UTC](https://techcommunity.softwareag.com/t/callnat-with-long-list-of-parameters/79240/1 "2008-10-11T11:09:29Z")

</div>

Hi  
Any statistics of callnat performance with long parameters (thousands of fields?)  
THANKS

---

<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:** [October 12, 2008, 3:12am UTC](https://techcommunity.softwareag.com/t/callnat-with-long-list-of-parameters/79240/2 "2008-10-12T03:12:08Z")

</div>

Basically, performance degrades as the number of parameters increases. To be quite honest, i would have to check the manual to see if there is an upper bound on the number of parameters for a subprogram. “thousands” seems a bit unlikely; hundreds would certainly degrade performance quite a bit.

More commonly, you would pass a single large field that has been REDEFINE’d ;  
for example

```
             1 #DATA (A500)
             1 REDEFINE #DATA
                2 #A1 (A10)
                :::
                2 #A100 (A3)

              CALLNAT 'MYSUB' #DATA

```

and MYSUB would have a Parameter Data Area with #DATA REDEFINE’d as above

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:51pm UTC](https://techcommunity.softwareag.com/t/callnat-with-long-list-of-parameters/79240/3 "2021-04-02T14:51:01Z")

</div>


