Data Integrity Reverse-engineering Introduction to Models

Creating and Reverse-Engineering a Model 5-5

2. Click Reverse Engineer in the Model toolbar menu, then Yes to validate the

changes.

3. Click OK.

4. The Session Started Window appears.

5. Click OK.

You can review the reverse-engineering tasks in the Operator Navigator. If the reverse-engineering process completes correctly, reverse-engineered datastores appear under the model node in the Models panel.

5.3 Creating and Reverse-Engineering a Datastore

Although the recommended method for creating datastores in a model is reverse-engineering, it is possible to manually define datastores in a blank model. It is the recommended path for creating flat file datastores.

5.3.1 Creating a Datastore

To create a datastore:

1. From the Models tree in Designer Navigator, select a Model or a Sub-Model.

2. Right-click and select New Datastore.

3. In the Definition tab, fill in the following fields:

■ Name of the Datastore : This is the name that appears in the trees and that is used to reference the datastore from a project ■ Resource Name : Name of the object in the form recognized by the data server which stores it. This may be a table name, a file name, the name of a JMS Queue, etc. ■ Alias : This is a default alias used to prefix this datastore’s columns names in expressions.

4. If the datastore represents a flat file delimited or fixed, in the File tab, fill in the

following fields: ■ File Format : Select the type of your flat file, fixed or delimited. ■ Header : Number of header lines for the flat file. ■ Record Separator and Field Separator define the characters used to separate records lines in the file, and fields within one record. Record Separator : One or several characters separating lines or records in the file: – MS-DOS: DOS carriage return – Unix: UNIX carriage return – Other: Free text you can input as characters or hexadecimal codes Field Separator : One ore several characters separating the fields in a record. – Tabulation – Space – Other: Free text you can input as characters or hexadecimal code