0 / 0
Inserting parameters and parameter sets as properties in DataStage

Inserting parameters and parameter sets as properties

You insert parameters in your flows to specify values at run time, rather than hardcoding the values. Specifying the value of the parameter each time that you run the job ensures that you use the correct resources, such as the database to connect to and the file name to reference.

After you add parameters and parameter sets to your flow, you insert them into properties for various stages. Properties that you can substitute a parameter for have the job parameter icon next to the property value field.

If you delete a parameter, ensure that you remove the references to the parameter from your job design. If you do not remove the references, your job might fail.

  1. Open the stage that you want edit. For example, a Sequential File stage.
  2. Expand the Properties section and click the Parameterize icon ({#}) next to the property.
  3. Select the parameter that you want to use, then click Select.

    The parameter is displayed in the property field, delimited by number signs (#). For example, #Parameter_name#.

    If you add a parameter that is included in a parameter set, the parameter set name precedes the name of the parameter. For example, #Parameter_set_name.Parameter_name#.

  4. Click Save.
Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more