Creating code lists

You create a new code list when you need to ensure a value is valid during translation. For instance, you may want to ensure that a simple element contains a valid part number.

The following steps describe how to create a new code list.

  1. Open the Code Lists editor. The following steps describe how to do this.
    1. Click the Mapping button on the main application window.
    2. In the Code Lists tab, click the New button. The Code List editor opens.
  2. On the General tab of the Code List editor, type in the name of the code list into the Name field. This value must be unique among translation tables and code lists.
  3. In the Description field, you can optionally type a description of the code list.
  4. In the Data Type field, indicate whether the values contained in the code list will be character or numeric.
  5. In the Maximum Length field, identify the maximum length of the values. The length can be up to 35 characters long.
  6. Click the New button to open the Add New Code List Entry dialog to create the code list entries. Each entry identifies a valid value within the code list. In the dialog, enter a value that is to be considered valid and its corresponding description. Click the Insert button to insert the entry. The dialog remains open so another entry can be made. Press the OK button to add the last entry to the code list, or press the Cancel button if the last entry has already been made.
  7. Click the Comments tab, and type any comments you have about the code list.
  8. Click the Save button on the toolbar. Data Interchange Services client saves the new code list to the database.
  9. Close the editor when you are done.

Copyright IBM Corp. 2003, 2005