# Execute program on steplib

**URL:** <https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, NaturalONE-Full-Edition\
**Created:** [April 4, 2012, 3:52pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090 "2012-04-04T15:52:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julio\_Cezar](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Julio\_Cezar](https://techcommunity.softwareag.com/u/Julio_Cezar)\
**Post date:** [April 4, 2012, 3:52pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090/1 "2012-04-04T15:52:58Z")

</div>

In NaturalOne 8.2.4 working on server mode(Unix AIX).  
Have a program in library SYSTEM(FUSER), and this is a STEPLIB.  
I need to run a program library SYSTEM(FUSER) from another library, it’s possible?

---

<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 4, 2012, 4:00pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090/2 "2012-04-04T16:00:50Z")

</div>

The 2nd environment’s FUSER will need to be defined in NATPARM in the global  
configuration with a specific dbid/fnr, then add SYSTEM (with that dbid/fnr explicitly)  
specified to your STEPLIB chain.

Note:

this will override ALL of what is in the “current” environment’s SYSTEM(FUSER), so there  
is no way of executing just one program from a specific library and have Natural ignore  
everything else on that library, if this is the requirement you will have to copy that one  
module (and co-requisites) to a STEPLIB library.

---

<div class="post-metadata">

**Author:** ![Julio\_Cezar](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Julio\_Cezar](https://techcommunity.softwareag.com/u/Julio_Cezar)\
**Post date:** [April 4, 2012, 4:21pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090/3 "2012-04-04T16:21:20Z")

</div>

In this way my natparm, this is according to what you said?

04/04/2012 Natural Configuration Utility User: (Config)  
V 6.3.9 PL 0 Software AG 2010 File: NATPARM

???  
File Edit Configuration Search ?  
???  
??? System Files ???  
? C DBID FNR Alias Name Path ?  
? 22 10 /opt/sag/nat/v6390/fnat ?  
? 22 20 /opt/sag/nat/fuser ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
? 0 0 ?  
???  
Enter command - [D]elete [I]nsert [U]ndo  
Thanks

---

<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 4, 2012, 4:36pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090/4 "2012-04-04T16:36:22Z")

</div>

Maybe I misunderstood what you are asking for, what I understood is  
you have a 2nd environment and you want to use library SYSTEM from  
this 2nd environment’s FUSER.

If this is the case what you will need to do is, for example, define

/opt/sag/nat2/fuser as DBID=33 FNR=20

then add SYSTEM with DBID=33 FNR=20 to your STEPLIB chain in  
NATPARM → Edit → Natural Execution Configuration → Steplibs

---

<div class="post-metadata">

**Author:** ![Julio\_Cezar](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Julio\_Cezar](https://techcommunity.softwareag.com/u/Julio_Cezar)\
**Post date:** [April 4, 2012, 5:05pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090/5 "2012-04-04T17:05:57Z")

</div>

I have a library SYSTEM (FNAT) and I have another library SYSTEM (FUSER).  
All objects that are in the library SYSTEM (FUSER) I can run from any other library in Natural Unix, but NaturalOne can not do it.

04/04/2012 Natural Configuration Utility User: (Config)  
V 6.3.9 PL 0 Software AG 2010 File: NATPARM

???  
?File Edit ? Batch Mode… ? Search ?  
??? Buffer Sizes ???  
? Datab??? Steplibs ???  
? Natur? \*STEPLIB (STEPLIB) SYSTEM ??  
? Natur? ??  
? Produ? Steplib Extension ??  
? Clien? No Name DBID FNR ??  
??? – -------- ----- ---- ??  
? 1 SYSEXDDM 22 10 ??  
? 2 SYSIDL 22 10 ??  
? 3 SYSLIB 22 10 ??  
? 4 SYSEXT 22 10 ??  
? 5 SYSRPC 22 10 ??  
? 6 0 0 ??  
? 7 0 0 ??  
? 8 0 0 ??  
???

Enter steplib name

04/04/2012 Natural Configuration Utility User: (Config)  
V 6.3.9 PL 0 Software AG 2010 File: NATPARM

???  
?File Edit ? Batch Mode… ? Search ?  
??? Buffer Sizes ???  
??? System Files ???  
?? DBID FNR Password Cipher ROSY ?  
?? FNAT 22 10 OFF ?  
?? FUSER 22 20 OFF ?  
?? FSEC 191 7 OFF ?  
?? FDIC 191 40 ?  
? FDDM 0 0 OFF ?  
???  
? Regional Settings ?  
? Report Parameters ?  
? Steplibs ?  
? System Files ?  
? System Variables ?  
? Work Files ?  
???

0 to 254 (0 means undefined)

---

<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 4, 2012, 9:08pm UTC](https://techcommunity.softwareag.com/t/execute-program-on-steplib/100090/6 "2012-04-04T21:08:30Z")

</div>

I have the following in a user library

```auto
STACK TOP COMMAND 'HELOSYSP'
END
```

and the following (HELOSYSP, Type=Program) in SYSTEM on FUSER

```auto
INPUT (AD=O) 'HELLO WORLD'
END
```

Is this what you are looking for and what does not work as expected ?

---

<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/execute-program-on-steplib/100090/7 "2021-04-02T15:01:44Z")

</div>


