Just be aware that you can't pass an environment var back to the program that called the Kix script..
You can set a variable in:
- the LOCAL environment that will be visible to any child process started by SHELL or RUN (SETL Command);
- the SYSTEM environment that will be visible to any new process started by any user (SETM Comand);
- the USER environment that will be visible to any new process started by the current user. (SET command). This will send a notify command to the environment and be updated by applications that support it.
If you want to pass a value back, you'll need to output the value or write it to a file that can be read by the parent process. The variable you set will not be visible to the currently running Kix script either.
Glenn
_________________________
Actually I
am a Rocket Scientist!