RE: Passing Variables from UNIX to I4GL
Posted in 2000
In your 4gl program you can use the syntax -
let g_variable = arg_val(1)
arg_val(1) will be the 1st parameter passed to the program. You can read up
about the different values (0, 1, 2, ....) in the manuals.
There should be a way of passing your environment variable to the program
this way.
Regards
Dirk
Reach Technologies
-----Original Message-----
From: owner-informix-list@iiug.iiug.org
[mailto:owner-informix-list@iiug.iiug.org]On Behalf Of Adam
Sent: Wednesday, December 13, 2000 1:29 PM
To: informix-list@iiug.org
Subject: Passing Variables from UNIX to I4GL
Could someone with I4GL experiance please help with the following problem:
1. same data base (different data) on 4 different servers scattered around
the country.
2. not enough money or trained people to manage all four sites (same old
story)
What I want to do is consolidate the four databases into the one Informix
Instance, but still keep the seperate databases (until the data can be
migrated into the same database). My plan of attack was to modify the 4gl
source code so that I could replace all the "database dbname;" statments
with a "database UNIX_ENVIROMENT_VARIABLE;" statement that way when the user
logs in the UNIX_ENVIROMENT_VARIABLE can be set in their .profile and it
will point them at the right database. therefor enabiling me to consolidate
on to the one instance.
UNIX=AIX, SHELL=ksh
INFORMIX=7.31UC5RDS = 7.2?
Adam Birch
AMBirch@hotmail.com