Re: Getting Database Name
Posted in 1994
J. David Schronce (david@cssnet.sanford.nc.us) wrote: : Is their any way to get the current active databse name from inside a 4GL : program in a RDS environment? I have a program that requires different : actions dependent on the current active database name. I have the : database name set as a unix environment variable. I guess if I can't : read it directly from inside informix, I could try to read it from : Unix... : : Any help with either would be GREATLY appreciated! : : Emailed replies will be summarized. : Thanks! : ---dave--- Quickest way if you already have it in a shell variable: let database_var = fgl_getenv("DATABASE_SHELL_VARIABLE_NAME") ie. if your shell variable is DBASENAME and you want to store it in dbvar: let dbvar = fgl_getenv("DBASENAME") -- gburnore@garys.arasmith.com ------------------------------------------------------------------------------- How you look depends on where you go. ------------------------------------------------------------------------------- | '۳''''''۳''''''''''''' Gary L. Burnore | '۳''''''۳''''''''''''' Director, Programming & Development | '۳''''''۳''''''''''''' Myers Information Systems, Inc. | '۳''''''۳''''''''''''' | Official Proof of Purchase ===============================================================================