Categorizing Codesets and Defining Code Values
You can create and manage codesets in Codesets Manager. Its workspace has two sections, Enterprise Codesets and Codeset Mappings. You can categorize and define codesets in the Enterprise Codesets section, while you can create codeset crosswalks (mappings) in the Codeset Mappings section.
Before defining codesets, you need to create categories to hold the codesets.
To create categories, follow these steps:
- Go to Application Menu > Data Catalog > Codeset Manager.
- In Codesets Workspace, right-click the Codesets node.
- Click New Category.
- Enter Category Name and Category Description.
- Category Name - EDW
- Category Description - This category contains three codesets, Country Codes, Gender, and Marital Status.
- Click
.

The New Category page appears.

For example:
A new category is created and added to the category tree.
After creating a category, you can define codesets, which are stored inside the category.
To define codesets, follow these steps:
- Right-click the category node created by you in the above step.
- Click New Codeset.
- Enter Codeset Name and Codeset Description.
- Codeset Name - Country Codes
- Codeset Description - This codeset has code names and code values for four countries.
- Click
.

The New Codeset page appears.
For example:
A codeset is created and stored in the codesets tree.
We can populate code values in codesets by scanning the database.
To populate code values in codesets via DB scan, follow these steps:
- Click the codeset created by you.
- In Code Value Grid, click
.
- Click
and expand the Quick Connection pane.
- Enter appropriate values in the fields (connecting parameters). Fields marked with a red asterisk are mandatory. Refer to the following table for field description.
- Click
to test the connection.
- Write a query in the Query Panel and click
to validate the query.
- Click
to preview the query result.
- Double-click the Select CSMHeader Template cell of the required column.
- Select the required Code Value Grid column.
- Click
to import the selected columns in the Code Value Grid.

Field Name |
Description |
---|---|
DBType |
Specifies the database type. For example, Sql Server. Select the database type from which you wish to scan codes. |
Driver Name |
Specifies the JDBC driver name for connecting to the database. For example, com.microsoft.sqlserver.jdbc.SQLServerDriver It is autopopulated depending on the DB type. You can also update the driver name. |
IP Address/Host Name |
Specifies the IP address or server host name of the database. For example, localhost. |
Port |
Specifies the port to connect with the database. For example: 1433 is the default port for a Sql Server database type. |
Database Name |
Specifies the database name being used to connect to the codeset. For example, ErwinDIS931. |
System Name |
Specifies the name of the system related with the codeset. For example, EDW. The name of the system should be same as provided in Metadata Manager. |
System Environment Name |
Specifies the name of the environment related with the codeset. For example, EDW-DEV. The name of the environment should be same as provided in Metadata Manager. |
User Name |
Specifies the user name to connect with database. For example, sa. |
Password |
Specifies the password to connect with database. For example, goerwin@1. |
URL |
Specifies the full JDBC URL that is used to establish a connection with the database. For example, jdbc:sqlserver://SERVER_ NAME:PORT#;databaseName=DatabaseName It is autopopulated based on the other parameters. |
If connection is established then a success message pops up.
The columns of the Code Value Grid appears as an option list.

Note: You can select multiple columns from the data base.
The selected columns are imported in the Code Value Grid.
You can also enter codes in the Code Value Grid:
- Manually
- Using MS Excel files
For more information on maintaining codesets, refer to the Maintaining Enterprise Codesets section.
Copyright © 2020 erwin, Inc.
All rights reserved.
|
|