Thursday 27 July 2017

How to set default values for Environment Variables without re-compiling DataStage jobs

Question

Is it possible to set/change the default values for an environment variable without re-compiling the DataStage job?

Answer

Yes, it is possible to set/change the default values for an environment variables without recompiling the job.

You can manage all of your environment variables from the DataStage Administrator client. To do this follow these steps:

  1. Open the Administrator client and select the project you are working in and click Properties.
  2. On the General tab click Environment.
  3. Create a new environment variable under the "User Defined" section or update the variable if it exists. Set the value of the variable to what want the DataStage job to inherit.
  4. Once you do this, close the Administrator Client so the variable is saved.
  5. Next, open the DataStage Designer client and navigate to the Job Properties.
  6. Add the environment variable name that you just created in the DataStage Administrator Client.
  7. Set the value of the new variable to $PROJDEF. This will inherit whatever default value you have set in the Administrator client. This will also allow you to update that default value in the Administrator client without having to recompile the job.

No comments:

Post a Comment