添加定制环境变量

可以通过保存路径为 /ds-storage/PXRuntime/Projects/DSParams.json 且采用指定格式的有效 JSON 文件,将定制环境变量添加到 IBM® DataStage

要向 DataStage 作业添加定制环境变量,请创建 JSON 文件并将其保存在 /ds-storage/PXRuntime/Projects/DSParams.json
在 JSON 文件的每个条目中包含以下字段。 条目定义环境变量。
  • name 是环境变量的名称。
  • default 是变量的缺省值。 如果没有,请留空。
  • helpText 是在 UI 中显示的变量的较长描述。
  • values 是变量值的列表。 仅对 type = List 和 type = Boolean 有效。 如果 type = Boolean ,请输入 "True" ,值为 "False"。
  • category 是变量的类别,供将来使用。 始终设置为 "并行"
  • type 是变量的类型,如 Boolean , String , Number 和 List。
  • promptText 是变量的较短描述。 它在运行时显示。
  • supported 确定是忽略还是处理该条目。 0=not ,将忽略该条目。 1=supported,将处理该条目。
示例文件:
[
  {
    "name": "APT_DEBUG_DYNAMIC_POD",
    "default": "False",
    "helpText": "When set to True logs additional messages indicating pods used by dynamic config files.",
    "values": [
      "True",
      "False"
    ],
    "category": "Parallel",
    "type": "Boolean",
    "promptText": "Log dynamic pods",
    "supported": "1"
  },
  {
    "name": "MY_CUSTOM_ENV_VAR",
    "default": "42",
    "helpText": "Specifies the answer to the meaning of Life the Universe and Everything.",
    "values": [
    ],
    "category": "Parallel",
    "type": "Number",
    "promptText": "Your answer",
    "supported": "1"
  }
]