RE: passing database through ARG_VAL?
Posted in 1998
We have a similar situation here, here is an example on how we set the database. We determine the database by retrieving the database name from an environment variable. This works on UNIX and NT. DEFINE dbname CHAR(10) LET dbname = fgl_getenv("DBNAME") DATABASE dbname This will work similar if you' prefer to use ARG_VAL instead of getting FGL_GETENV. Mike Gabbard Red Man Pipe & Supply Company -----Original Message----- From: Daniel Farr [mailto:dfarr@goldwp.golden.csc.com] Sent: Tuesday, December 08, 1998 3:20 PM To: informix-list@iiug.org Subject: passing database through ARG_VAL? I'm brand new to i4gl and the newsgroup. I work in a data-conversion shop and the utilities I am trying to build with i4gl need to have the DATABASE variable passed to them through ARG_VAL. (i.e., there are many databases to choose from, and input was in a previous shell script). So far, I have had very limited success. First, I tried setting DATABASE to 'sysmaster' and changing the variable after i4gl initialization steps. Does anyone have insight or suggestions as far as how to do this? (remember, I'm new to this...) Thanks a million. Dan Farr, dfarr@goldwp.golden.csc.com