# Dynamically change the Natural Param File name in Host Con.

**URL:** <https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [September 24, 2010, 11:29pm UTC](https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809 "2010-09-24T23:29:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![multanid](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@multanid](https://techcommunity.softwareag.com/u/multanid)\
**Post date:** [September 24, 2010, 11:29pm UTC](https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809/1 "2010-09-24T23:29:56Z")

</div>

We are using ApplinX on windows to access Natural based apps on HP-UX via Natural Unix (APX) protocol. We have a need to conditionally change the NATPARM in host connection before we invoke the web app. Is it possible to do that? If so, has anybody done it? Any help would be appreciated.

Dal Multani  
Office of the Clerk,  
U.S. House of Representatives

---

<div class="post-metadata">

**Author:** ![Assaf\_Appel](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Assaf\_Appel](https://techcommunity.softwareag.com/u/Assaf_Appel)\
**Post date:** [September 26, 2010, 8:11pm UTC](https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809/2 "2010-09-26T20:11:52Z")

</div>

Hello,

Currently you can set one parameter file (which holds the NATPARAMs) per ApplinX host connectivity and this cannot be changed dynamically.  
Therefore to set different parameters you should create several demons (in natural) with different parameter files and create an ApplinX applications+hosts per deamon. Once the web user will ask to connect, you should set the ApplinX application name which you want him to use, by setting the application configuration in gx\_initSessionConfig (GXBasicContext.java)

Here is the needed code:

gx\_appConfig.getSessionConfig().set\_ApplicationName(“myApplinXApplication”);

Hope it helps

Assaf

---

<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:** [September 27, 2010, 11:33pm UTC](https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809/3 "2010-09-27T23:33:43Z")

</div>

Dal - can you explain what you would like to change in the NATPARMs dynamically? This might give other ways to solve your actual problem.

---

<div class="post-metadata">

**Author:** ![multanid](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@multanid](https://techcommunity.softwareag.com/u/multanid)\
**Post date:** [October 5, 2010, 6:54pm UTC](https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809/4 "2010-10-05T18:54:58Z")

</div>

Douglas - we have a separate FUSER and Database for each Congress. At the beginning of each Congress, the the users have the need to go to previous Congress’ FUSER and DB. We are using a different NATPARM for each Congress which points to the corresponding FUSER and UDB. I was wondering if we could override the NATPARM name in the Host Connection of ApplinX by using different URL for each Congress. It seems that we cannot dynamically override the NATPARM. Instead, we have to duplicate the application, one for current Congress and one for previous Congress. We can provide the users with the capability of switching UDB once they are in the application but cannot change the FUSER at that point. I would sincerely appreciate if you can suggest any other workable solution.

Regards,  
Dal

---

<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:59pm UTC](https://techcommunity.softwareag.com/t/dynamically-change-the-natural-param-file-name-in-host-con/94809/5 "2021-04-02T14:59:08Z")

</div>


