Page History
The following environment variables are available for all script loads and script exports, both Windows and UNIX/Linux.
All load scripts
The In addition to the specific variables listed on the sections below, the following variables are available in all load scripts:
| Environment variable | Description |
|---|---|
WSL |
_META_AUTHCFG | Additional user defined attributes as JSON, scripts can load attributes from this variable. |
WSL_META_AUTHTKN_[1|2|3] | Additional Profile authentication token fields from the associated Metadata Connection, normally used directly in connection strings with the token format $AUTHTKN_[1|2|3]$ but can be accessed in scripts via this variable. |
WSL_META_DBID | The Database ID property of the meta-repository connection. |
WSL_ |
META_ |
DB | The |
| name of the database for the meta-repository connection. |
WSL_ |
META_SCHEMA | The meta-repository schema |
| name, with a trailing dot. | |
WSL_META_USER | The user id for the meta-repository connection. |
WSL_ |
META_ |
PWD | The |
| password for the |
| meta-repository connection. | |
WSL_WORKDIR |
|
WSL_SEQUENCE | A unique sequence number for the load or export task. |
WSL_SCH_RESTAPI_URL | The server URL for the scheduler connection. |
WSL_SCH_RESTAPI_USER | The api user id for the scheduler connection. |
WSL_SCH_RESTAPI_PWD | The password for the scheduler connection |
WSL_JOB_KEY | ID of the Job which started the script, '0' for interactive execution. |
WSL_JOB_NAME | Name of the Job which started the script, 'Develop' for interactive execution. |
WSL_TASK_KEY | ID for the Task within the Job, or Object ID for interactive execution. |
WSL_TASK_NAME | Name of the Task within the Job, or Object Name for interactive execution. |
Additional environment variables for load scripts
The following variables are available in all load scripts:
| Environment variable | Description |
|---|---|
WSL_LOAD_FULLNAME | The fully-qualified load table name. |
WSL_LOAD_TABLE | The unqualified load table name. |
WSL_LOAD_SCHEMA | The schema for the load table. |
WSL_LOAD_DB | The name of the database for the load table. |
WSL_TEMP_DB | The name of the staging database for the load (Teradata only). |
|
WSL_TGT_AUTHCFG | Additional user defined attributes as JSON, scripts can load attributes from this variable. |
WSL_TGT_AUTHTKN_1 | Encrypted field “Token 1” can be replaced in connection strings by specifying the token: $AUTHTKN_1$. It is intended to contain tokens, passwords or secrets related to authentication. |
WSL_TGT_AUTHTKN_2 | Encrypted field “Token 2” can be replaced in connection strings by specifying the token: $AUTHTKN_2$. It is intended to contain tokens, passwords or secrets related to authentication. |
WSL_TGT_AUTHTKN_3 | Encrypted field “Token 3” can be replaced in connection strings by specifying the token: $AUTHTKN_3$. It is intended to contain tokens, passwords or secrets related to authentication. |
WSL_TGT_DBID | The Database ID property of the load table's storage connection. |
WSL_TGT_USER | The user id for the load table's storage connection. |
WSL_TGT_PWD | The password for the load table's storage connection. |
WSL_TGT_CONSTRING | The ODBC connection string with RED tokens expanded. |
WSL_TGT_AUTHCFG | Additional Profile authentication attributes (JSON format), from the associated Target Connection. Extract attributes by parsing the JSON, if required. |
WSL_TGT_AUTHTKN_[1|2|3] | Additional Profile authentication token fields from the associated Target Connection, normally used directly in connection strings with the token format $AUTHTKN_[1|2|3]$ but can be accessed in scripts via this variable. |
WSL_PARAMnnn | Any parameters that start with the load table or export object name. Example: A table called load_abc has a parameter called load_abc_server defined. In this case, a variable called WSL_PARAM_SERVER will be created. |
All load scripts from Database or ODBC connections
...
| Environment variable | Description | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
WSL_SRC_AUTHCFG | Additional user defined attributes as JSON, scripts can load attributes from this variable. | |||||||||||
WSL_SRC_DSN | The ODBC data source name (DSN) for the source connection. | |||||||||||
WSL_SRC_SERVER | The server for the source connection. | |||||||||||
WSL_SRC_DBPORT | The database port for the source connection. | |||||||||||
WSL_SRC_DBID | The Database ID property of the source connection. | |||||||||||
WSL_SRC_DB | The name of the database for the source connection. | |||||||||||
WSL_SRC_AUTHTKN_[1 | Encrypted field “Token 1” can be replaced in connection strings by specifying the token: $AUTHTKN_1$. It is intended to contain tokens, passwords or secrets related to authentication. | |||||||||||
WSL_SRC_AUTHTKN_2 | Encrypted field “Token 2” can be replaced in connection strings by specifying the token: $AUTHTKN_2$. It is intended to contain tokens, passwords or secrets related to authentication. | |||||||||||
|2|3] | Additional Profile authentication token fields from the associated Source Connection, normally used directly in connection strings with the token format $AUTHTKN_[1|2|3]$ but can be accessed in scripts via this variable | WSL_SRC_AUTHTKN_3 | Encrypted field “Token 3” can be replaced in connection strings by specifying the token: $AUTHTKN_3$. It is intended to contain tokens, passwords or secrets related to authentication. | |||||||||
WSL_SRC_SCHEMA | The Source Schema property of the load.
| |||||||||||
WSL_SRC_USER | The user id for the source connection. | |||||||||||
WSL_SRC_PWD | The password for the source connection. |
All Additional environment variables for export scripts
The following variables are available in all export scripts:
| Environment variable | Description |
|---|---|
WSL_EXP_NAME | The export object name. |
WSL_EXP_FULLNAME | The fully-qualified export table name. |
WSL_EXP_TABLE | The unqualified export table name. |
WSL_EXP_SCHEMA | The schema for the export table. |
WSL_EXP_DB | The name of the database for the export table. |
WSL_TEMP_DB |
|
WSL_SRC_DSN | The ODBC data source name (DSN) for the export table's storage connection. |
WSL_SRC_SERVER | The server for the export table's storage connection. |
WSL_SRC_DBPORT | The database port for the export table's storage connection. |
WSL_SRC_DBID |
|
WSL_SRC_USER | The user id for the export table's storage connection. |
WSL_SRC_PWD | The password for the export table's storage connection. |
All scripts
In addition to the specific variables in the previous tables, the following variables are available in all scripts:
WSL_META_AUTHCFGWSL_META_AUTHTKN_1Encrypted field “Token 1” can be replaced in connection strings by specifying the token: $AUTHTKN_1$. It is intended to contain tokens, passwords or secrets related to authentication.
WSL_META_AUTHTKN_2Encrypted field “Token 2” can be replaced in connection strings by specifying the token: $AUTHTKN_2$. It is intended to contain tokens, passwords or secrets related to authentication.
WSL_META_AUTHTKN_3Encrypted field “Token 3” can be replaced in connection strings by specifying the token: $AUTHTKN_3$. It is intended to contain tokens, passwords or secrets related to authentication.
WSL_META_DBID WSL_META_DBWSL_META_SCHEMA WSL_META_USER WSL_META_PWD WSL_WORKDIR- Windows: The work directory defined in the Windows connection.
- UNIX/Linux: The work directory defined in the UNIX/Linux or Hadoop connection.
WSL_SEQUENCE WSL_PARAMnnnWSL_SCH_RESTAPI_URLWSL_SCH_RESTAPI_USERWSL_SCH_RESTAPI_PWDWSL_JOB_KEYWSL_JOB_NAMEWSL_TASK_KEYWSL_TASK_NAME| . |
Azkaban Environment Variables
...