# CALLING NATURAL FROM 3GL PROGRAMS

**URL:** <https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Natural-on-Windows-Unix\
**Created:** [January 17, 2006, 10:29pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440 "2006-01-17T22:29:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvilefort](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jvilefort](https://techcommunity.softwareag.com/u/jvilefort)\
**Post date:** [January 17, 2006, 10:29pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440/1 "2006-01-17T22:29:21Z")

</div>

Can I call a Natural object(program, subprogram) from a COBOL, PL/1 or ASSEMBLER program ?  
If yes, how can I do ?

---

<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:** [January 18, 2006, 1:47am UTC](https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440/2 "2006-01-18T01:47:24Z")

</div>

Basically there are three options:

1. Remote Procedure Call (RPC), see [http://developer.softwareag.com/ets/docu/natural/Nat414mf/print/rpc.pdf](http://developer.softwareag.com/ets/docu/natural/Nat414mf/print/rpc.pdf)

2. Invoking NATURAL directly, which means starting the NATURAL “runtime” with every invocation (expensive)

3. Using the 3GL Callnat interface ( see “Natural 3GL CALLNAT Interface” in [http://developer.softwareag.com/ets/docu/natural/Nat414mf/print/ops\_mf.pdf](http://developer.softwareag.com/ets/docu/natural/Nat414mf/print/ops_mf.pdf) ).

---

<div class="post-metadata">

**Author:** ![BenedictXVII](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@BenedictXVII](https://techcommunity.softwareag.com/u/BenedictXVII)\
**Post date:** [January 18, 2006, 4:18pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440/3 "2006-01-18T16:18:24Z")

</div>

> [@jvilefort](#):
>
> Can I call a Natural object(program, subprogram) from a COBOL, PL/1 or ASSEMBLER program ?  
> If yes, how can I do ?

1. On Windows and UNIX: Using the Natural Native Interface ([http://developer.softwareag.com/ets/docu/natural/Nat611win/print/pg.pdf](http://developer.softwareag.com/ets/docu/natural/Nat611win/print/pg.pdf) p. 565 ff.).  
Regards, +o:-]

---

<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:** [January 18, 2006, 4:55pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440/4 "2006-01-18T16:55:32Z")

</div>

Right, but from “COBOL, PL/1 or ASSEMBLER” I concluded we are talking about options available on the mainframe, so I listed just those 😉

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-3gl-programs/60440/5 "2021-04-02T14:40:24Z")

</div>


