Configuration Environment Variables
Environment variables to set for an application is defined in the following
order:
- Base DSL
- Plugins
- Common configuration
- Configuration
- Application
Environment variables are now broken up into three tables based on platform dependency.
Each environment variable has the following fields:
- Name - the name of the environment variable. The name should be uppercase.
- Value - the value of the variable. Embedded variables MUST follow
the UNIX format( $VAR_NAME or ${VAR_NAME} ). Paths should use the UNIX directory
separator and path variables(i.e. PATH or SHLIB_PATH) should use a colon to
separate paths and not a semicolon as on windows.
- Comment - for your use only. The DSL only stores the value.
Adding a Variable
To add a variable:
- Scroll to the table of the type of variable you want to add
- Press the '+' button located beneath the table.
- Scroll the table to the bottom to access the newly added item
- Double-click the empty cell in the Variable Name to edit the value
- Repeat in the empty cell in the Variable Value column.
Editing a Variable
To edit a variable:
- Scroll to the table where the variable is defined
- Select the variable to edit in the table.
- Double-click the cell in the Variable Name to edit the value
- Repeat in the cell in the Variable Value column.
Deleting a Variable
To delete a variable:
- Scroll to the table where the variable is defined
- Select the variable to edit in the table.
- Press the '-' button to delete the variable
Important DSL System Variables
DSL has a few environment variables that will be of use when configuring the
department. You can use them to help in defining your variables or the department's
applications.
| Variable Name |
Variable Description |
| DSL_BASE_DIR |
Where the DSL is installed |
| DSL_UGSITE_DIR |
Where the ugsite directory is |
| DSL_DEPT_DIR |
Location of the configuration directory in use |
| UG_VER |
Name of the NX version directory in the configuration |
| OS |
Name of the operating system directory( hp or win/win64 ) |
| SCRIPTx |
Extension of the platform's scripts(ksh or bat) |
| OSx |
Extension of the platform's shared libraries(sl or dll) |