# Calling Natural from Cobol and vice versa

**URL:** <https://techcommunity.softwareag.com/t/calling-natural-from-cobol-and-vice-versa/99926>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [March 20, 2012, 2:53am UTC](https://techcommunity.softwareag.com/t/calling-natural-from-cobol-and-vice-versa/99926 "2012-03-20T02:53:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashank\_Gite1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shashank_gite1/32/351_2.png) [@Shashank\_Gite1](https://techcommunity.softwareag.com/u/Shashank_Gite1)\
**Post date:** [March 20, 2012, 2:53am UTC](https://techcommunity.softwareag.com/t/calling-natural-from-cobol-and-vice-versa/99926/1 "2012-03-20T02:53:54Z")

</div>

Please let me know how can I call a Natural program from a Cobol module and also Cobol program from Natural module. Once the called module is complete, control should return back to calling module along with linkage data.

Thanks  
Shan

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [March 20, 2012, 3:16am UTC](https://techcommunity.softwareag.com/t/calling-natural-from-cobol-and-vice-versa/99926/2 "2012-03-20T03:16:28Z")

</div>

You can CALL ‘cobprog’ from Natural using the CALL statement. You can talk to your Natural admin about making sure this program is accessible from the nucleus.

As for calling Natural from COBOL, you can execute a CICS transaction that invokes Natural runtime and stack data to execute the program. If not running CICS, you have other options I am sure.

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [March 20, 2012, 5:39pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-cobol-and-vice-versa/99926/3 "2012-03-20T17:39:44Z")

</div>

Natural to COBOL (CALL statement) - [http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat822mf/sm/call.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat822mf/sm/call.htm)  
COBOL to Natural - [http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat822mf/ops\_mf/calln-over.htm#calln-over](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat822mf/ops_mf/calln-over.htm#calln-over)

---

<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:01pm UTC](https://techcommunity.softwareag.com/t/calling-natural-from-cobol-and-vice-versa/99926/4 "2021-04-02T15:01:40Z")

</div>


