Re: 4GL - Database Names
Posted in 1996
[ [ I am working in an environment where the programmers have hard-coded the [ database name in their 4GL code. [ [ We are running Informix 5.0 and I wanted to know how can I pass in a [ different database name on the fly to override the hard-coded one that [ currently exists in all their programs. [ I'm sure there is a variable that can be read in or passed in to say [ what database name I want. [ [ The only other option is for the programmers to take this hard-coded [ database name out of their 300+ programs. [ [ Any suggestions would be appreciated. [ Tks [ [ Ed [ [ -- [ ---------------------------------------------------------------------------- [ Ed Bidinotto bidinott@ucar.edu [ Hi , If u are using c4gl , i have a solution which may help u .. But u have to recompile all the sources ... Here it comes ... Preprocess the code ....( -I -P options - Please check ) U will get *.c code .... Edit the *.c file to change _iqdbase () function .... U can use `sed` to edit the file .... If u want you can read env variable using getenv() and pass this to _iq* function call .... This helps to assign diff . dabse at runtime .... Now u can compile the code to get *.4ge .... *** If u have pbm mail me i can send u a working make script ***** Goodluck ..... Bye. Peter. mpeter.muc@sni.de