
PowerCenter: Dynamic Parameter File Using SQL
Posted by: Radhakrishna Sarma
Demonstrates the technique to use a relational table to dynamically generate session parameter files.
Overview
A mapping parameter represents a constant value that you can define before running a session using a parameter file. Sometimes, business requirement may make it necessary to modify the parameter file frequently before running the session. In such cases, parameter files can be generated dynamically without directly editing them.Using a database table to maintain parameter file values can offer the following benefits
- Flexibility in maintaining the parameter files.
- Reduces the overhead for the admin support to change the parameter file every time a value of a parameter changes.
- Ease the deployment as all the parameters are maintained in database tables and a PowerCenter session can generate the parameter file in the required format automatically.
- FOLDER table ? Contains entries for each folder.
- WORKFLOWS table ? Contains the list of each workflow but with a reference to the FOLDERS table to say which folder a workflow belongs to.
- PARAMETERS table - Holds all the parameter names without reference to folder/workflow.
- PARAMETER_VALUES table - Holds the parameter of each session with references to PARAMETERS table for parameter name and WORKFLOWS table for the workflow name. When the session name is NULL, it means the parameter is a workflow variable which can be used across all the sessions in the workflow.
Features
- PowerCenter version 8.x, 9.1 and 9.5