PROJDEF parameter set in DataStage

You can use the PROJDEF parameter set to contain the parameters and environment variable values for a DataStage® flow, job, or job run to reference.

A project can have a parameter set named PROJDEF. This parameter set contains the parameters and environment variable values for a DataStage flow, job, or job run. Because it is a parameter set, you can use the existing parameter set UI to manage these variables. The parameter set can be imported into other projects.

In a DataStage flow, job, or job run, you reference a PROJDEF parameter set value with the value PROJDEF. The value PROJDEF is supported for parameters of all types, but only for string and encrypted PROJDEF user-defined environment variables.

When you import ISX files, all environment variables with default value PROJDEF are automatically added to the project parameter set PROJDEF. However, first you need to review and correct the parameter values as well as environment variable values.

For example, in traditional DataStage, you might have added a user-defined environment variable named $DB2_USERID with the value of db2admin by using the DataStage Administration tool. In modern DataStage, you add a user-defined variable $DB2_USERID parameter to your project's PROJDEF parameter set. In a DataStage flow, you add a user-defined variable with the same $DB2_USERID name. To use the PROJDEF parameter set value for $DB2_USERID, you specify a value of PROJDEF. The job run then uses the PROJDEF parameter set $DB2_USERID=db2admin.

To add a PROJDEF parameter to a flow, click the parameters icon in the toolbar and click Add PROJDEF parameter to view the list of parameters and environment variables. Select parameters and environment variables and click Add to add them to the flow.

You can create a PROJDEF parameter set by creating a parameter set with the appropriate parameters and environment variables. For more information on creating parameter sets, see Creating and using parameter sets in DataStage.