Re: DB Definition Reference
Posted in 1996
Srinivas Reddy wrote: > > You can avoid using the hard coded database name by replacing it by > ENVIRONMENT variable DBNAME. > > You may have to change little bit of code to accept the database name > from DBNAME. > > If I get time I will try to give you an example. > I don't think so. I'll bet none of the following work outside of a FUNCTION (the DATABASE declaration is at the top of the module, for compiling reasons): DATABASE DBNAME DATABASE $DBNAME DATABASE fgl_getenv("DBNAME") ... if you had something else in mind, please elaborate. > //////////////// ======================================================= ////////// // Dennis J. Pimple Informix Software, Inc. ////// / /// Principal Consultant 5299 DTC Blvd Suite 740 ///// // //// dennisp@informix.com Englewood CO 80111 //// // ///// /// // ////// recept: 303-850-0210 // // /////// direct: 303-740-5611 Opinions expressed are mine, / /////////// fax: 303-843-6408 and do not necessarily //////////////// http://www.informix.com reflect those of my employer