}From: "Mark D. Stock" <marks@west.co.za>
}Date: Tue, 29 Oct 1996 14:26:58 -0800
}X-Informix-List-Id: <news.29854>
}
}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.
Further, even if you manage to get the environment set correctly (it can be
done -- I wrote some code to do that and it is in the CGI stuff that is/was
available from http://www.informix.com) you then start to run foul of the
problem that many of the environment variables used by a program are read
just once, so changes after the program first reads the value have no effect.
Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>