I'm trying to set up run configurations for various projects which require specific environment variables. So, I went to the Environment tab of Run Configurations and added some variable (e.g. MY_VAR1 = SOMEVALUE). My assumption was when a executed OS-GETENV("MY_VAR1") it would return "SOMEVALUE". Much to my chagrin, it returned ?.
I've tried restarting PDSOE, restarting the AVM to no avail.
Are my expectations unreasonable? Or this there some dependency I'm missing? Or ...?
TIA.
Your expectations are reasonable, IMHO, but my experience is that environment variables do not work in Windows. Irritating, I know.
they should work.
Just tried it in 11.6 bits. Works fine. Don't know why it wouldn't work in 11.5.1.
Support for Path variables is implemented as part of 11.6. It is not there in 11.5.1.
Thanks,
Swathi.
Are you reusing the project avm - can you try to use a new avm for each run? In the main tab of launch configuration - OpenEdge AVM group, use "Start new OpenEdge AVM". Only when you use the new AVM, the environment variables will be passed.
My problem is with Environment variables, not Path variables.
I've tried both, but there are other problems with my setup that may adding to my confusion. I'll get those fixed and see if it solves the problem.
Thanks for the suggestion.
I have the Environment variable substitution working as expected. I'm not exactly sure what change fixed it, but I'm not arguing with success at the moment. :)
Thanks all!