# Can't use Natural Subprograms with object data area

**URL:** <https://techcommunity.softwareag.com/t/cant-use-natural-subprograms-with-object-data-area/92283>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [December 2, 2009, 7:03pm UTC](https://techcommunity.softwareag.com/t/cant-use-natural-subprograms-with-object-data-area/92283 "2009-12-02T19:03:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rudolf3](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Rudolf3](https://techcommunity.softwareag.com/u/Rudolf3)\
**Post date:** [December 2, 2009, 7:03pm UTC](https://techcommunity.softwareag.com/t/cant-use-natural-subprograms-with-object-data-area/92283/1 "2009-12-02T19:03:23Z")

</div>

Is it possible to use subprograms that contain an object data as a service.

I did notice that when I try to disclose a method of a class (which is basically a subprogram that shares the state of an object), I am unable to use this method (subprogram) as a Natural RPC service (it seems that the subprogram itself can only be used within the context of an object). Is this a known issue?

Kind regards,  
Rudolf

---

<div class="post-metadata">

**Author:** ![anon66457657](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@anon66457657](https://techcommunity.softwareag.com/u/anon66457657)\
**Post date:** [December 2, 2009, 7:56pm UTC](https://techcommunity.softwareag.com/t/cant-use-natural-subprograms-with-object-data-area/92283/2 "2009-12-02T19:56:23Z")

</div>

A Natural subprogram that contains an ODA cannot be called by CALLNAT statement. This implies that this subprogram can also not be called as a Natural RPC service.

---

<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:57pm UTC](https://techcommunity.softwareag.com/t/cant-use-natural-subprograms-with-object-data-area/92283/3 "2021-04-02T14:57:48Z")

</div>


