This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to import system variables using DSS

I am looking for information on how do I import system variable into the DSS script. It would help to make my script portable.

Earlier, with CCSv3.3, used perl based scripting and used something like "my $dir_name = $ENV{LTELIB_DIR};" to import the values. I want to know how to achieve the same.

  • If you simply want to use a system environment variable in your javascript, you can use java.lang.System.getenv() to read the variable:

    var myEnvVar= java.lang.System.getenv("ENVIRONMENT_VARIABLE");

    Note that this is not a DSS specific but can be used with generic javascript.

    Thanks

    ki