Re: Changing environmental variable from 4gl
Posted in 1996
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Phuoc Ho wrote: > > I have tried to change DBDATE from within 4gl using: > > run "setenv DBDATE Y2MD/" > > This did not work. Does anyone know of a work-around? True, because RUN initiates a sub-shell, and you can't pass variables back to a parent shell. You should not need to do this. If so, then your design is wrong. If you simply wish to run the same program with two different values of DBDATE, then use something like a shell script to set the variable and then call your 4GL program. Give us more detail on what you are trying to achieve. Hope this helps, -- Mark. +-------------------------------------------------------------------------+ |Mark D. Stock - The West Solutions Group http://www.west.co.za | | The Informix FAQ is at http://www.iiug.org | |mailto:marks@west.co.za +------------------------------------------------+ |Tel: +27 11 803 2151 |If it doesn't work... force it! | |Fax: +27 11 803 2189 |If it breaks... it needed replacing anyway! | |Cell: +27 83 250 2325 |Well, that's how I code anyway! | +------------------------+------------------------------------------------+