# DEFINE CLASS

**URL:** <https://techcommunity.softwareag.com/t/define-class/203474>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [April 12, 2019, 8:16am UTC](https://techcommunity.softwareag.com/t/define-class/203474 "2019-04-12T08:16:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthonie\_Botha2](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Anthonie\_Botha2](https://techcommunity.softwareag.com/u/Anthonie_Botha2)\
**Post date:** [April 12, 2019, 8:16am UTC](https://techcommunity.softwareag.com/t/define-class/203474/1 "2019-04-12T08:16:31Z")

</div>

Good morning,

I’m trying define a CLASS but the documentation regarding this is very poor. How do I create a class and use that class in programs.  
Coming from a Java environment the Natural class definition is rather complex. Any help would be greatly appreciated.

Just some background, the class I want to create will be to address the personnel file, so a person would therefore be a class, which will make the system much more streamlined and, just in my opinion, much easier to maintain since the class would not need to be changed, just used.

Many thanks in advance

---

<div class="post-metadata">

**Author:** ![Helmut\_Spichtinger](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@Helmut\_Spichtinger](https://techcommunity.softwareag.com/u/Helmut_Spichtinger)\
**Post date:** [April 15, 2019, 11:43am UTC](https://techcommunity.softwareag.com/t/define-class/203474/2 "2019-04-15T11:43:14Z")

</div>

Have a look in the documentation at the Natural statements METHOD and SEND METHOD. There are examples regarding a CLASS definition.

The source code of CLASS examples can be found in the Natural example libraries SYSEXSYN and SYSEXRM.

---

<div class="post-metadata">

**Author:** ![Anthonie\_Botha2](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Anthonie\_Botha2](https://techcommunity.softwareag.com/u/Anthonie_Botha2)\
**Post date:** [April 15, 2019, 11:54am UTC](https://techcommunity.softwareag.com/t/define-class/203474/3 "2019-04-15T11:54:27Z")

</div>

Thanks Helmut,

I will have look in the example lib SYSEXSYN (the SYSEXRM in our environment is empty).

---

<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:42pm UTC](https://techcommunity.softwareag.com/t/define-class/203474/4 "2021-04-02T15:42:36Z")

</div>


