Re: Getting Database Name
Posted in 1994
Danni Bauer — — source: Informix-list mailing list archive (1991-1998)
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... > You might like to pass it in from the command line: 4glprogramname ${DB_NAME} Then of course read the first parameter into a variable and test. Danni Bauer