Skip to Main Content
Due to the recent acquisition by IBM, the Adabas & Natural Ideas Portal does not contain ideas from products ApplinX and EntireX any longer. Please refer to the IBM Ideas Portal for these products from now on (IBMid required). Existing content will be migrated during the next few weeks.
Status Not in Plan
Workspace NaturalONE
Categories NaturalONE (ONE)
Created by Mogens Lundqvist
Created on Mar 28, 2022

Enable use of environment variables in “session parameters” in Map of a Natural Server Environment

It would great to be able to use environment variables (e.g. $sys_udv, $sys_tst – further see below) when mapping an environment. Simply include these variables as dynamic parameters when forking the new process from the NDV server.


Background

To setup various environments for a customer, we have defined a number of environment variables (example):

export sys_udv="fuser=22,1 fdic=1,6 fsec=1,7 udb=1"
alias udv="natural $sys_udv"
export sys_tst="fuser=22,5 fdic=5,6 fsec=5,7 udb=5"
alias tst="natural $sys_tst"

(… and so on for additional environments)


In Linux “native mode” various Natural sessions can be started simply by entering “udv” or “tst” because the alias includes an environment variable.

The same definitions we would like to reuse from NaturalOne.

Benefit

This would reduce the number of natural parameter modules we have to maintain.

Also a compensation for the lack of NTSYS and SYSPARM functionality that is available on mainframe but not on LUW

Enabled both for Software AG Designer (eclipse) and Natural Studio (should be easy because the NDV server at the end is the same).

And enabled for both NDV on Linux and Windows.

(reference: SI-464322 Use of “variables” in map of environment?)

  • Admin
    Eli Cohen
    Reply
    |
    Apr 22, 2024

    NATPARM is the preferred and recommended way of setting up environment parameters.

    Adding additional option will make it complex.