0% found this document useful (0 votes)
176 views21 pages

04 - Informatica Desiner Features

The document provides instructions for a series of exercises demonstrating features and techniques in Informatica PowerCenter Designer. The exercises cover auto arranging objects, removing and creating links manually and automatically, reverting to saved versions, tracing link paths, and autolinking by name and position. The goal is for students to learn commonly used Designer features to improve efficiency and usability.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
176 views21 pages

04 - Informatica Desiner Features

The document provides instructions for a series of exercises demonstrating features and techniques in Informatica PowerCenter Designer. The exercises cover auto arranging objects, removing and creating links manually and automatically, reverting to saved versions, tracing link paths, and autolinking by name and position. The goal is for students to learn commonly used Designer features to improve efficiency and usability.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 21

BANGALORE TECHNICAL TRAININGS Onlinetrainingsbglr@gmail.

com +917411642061

Lab 4
Features and Techniques I

Lab at a Glance................................................................3 Objectives..............................................................3 Summary................................................................3 Duration.................................................................3 Exercises.........................................................................4 Exercise 1: Prepare the Environment ....................4 Exercise 2: Arrange Objects...................................4 Exercise 3: Remove Links......................................6 Exercise 4: Manual Linking....................................6 Exercise 5: Revert to Saved...................................7 Exercise 6: Link Path.............................................8 Exercise 7: Autolink by Name and Position..........10 Exercise 8: Moving Ports......................................12 Exercise 9: Shortcut from Normal View to Edit Port .............................................................................14 Exercise 10: Copy Columns versus Link Columns .............................................................................14 Exercise 11: Create Transformation Methods......16 Exercise 12: Zoom and Scale-to-Fit.....................18
PowerCenter 9.x Level I Developer Lab Guide 4-1

Lab 4. Features and Techniques I

Exercise 13: Designer Options.............................19 Reference.......................................................................20 Copy Columns versus Link Columns....................20 Creating Transformations.....................................20 Other Zoom Options.............................................21

4-2

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Lab at a Glance
The exercises in this lab are designed to demonstrate and explain the various features and tools that can improve efficiency and ease-of-use in the Designer.

Objectives
After completing the lab, the student will be able to use some of the more commonly used features and techniques in the Designer, including: Auto Arrange Remove Links Link Manually Revert to Saved Link Path Autolink by Name and Position Moving Ports Shortcut to Port Editing from Normal View Copy Columns versus Link Columns Create Transformation Methods Scale-To-Fit

Summary
Do not save changes during any of the exercises or at the end of the lab, except in Exercise 2 (Layout|Arrange All). Other changes may invalidate the mapping.

Duration
This lab should take approximately 30 minutes.

PowerCenter 9.x Level I Developer Lab Guide

4-3

Lab 4. Features and Techniques I

Exercises
Exercise 1: Prepare the Environment
Step 1. Start PowerCenter Designer. Select Start | Programs | Informatica Platform 9.0 | Informatica PowerCenter Client 9.0 | Designer . Step 2. Connect to the repository. If the repository is not already open, select the repository and select Repository | Connect. The Connect to Repository dialog box appears:

Enter the assigned username and password. Click the Connect button. Step 3. Open the folder.
When a folder is opened for the first time, the Source Analyzer tool will appear by default in the Workspace.

Right-click on the Studentxx folder and select Open.

Step 4. Open a mapping. Open the mapping, m_ODS_EMPLOYEE_xx

Exercise 2: Arrange Objects


The Designer includes the Arrange feature that will reorganize objects in the Workspace in one simple step. This aids in readability and analysis of the mapping flow and can be applied to certain paths through a mapping associated with specific target definitions this is commonly referred to as a pipeline. In a couple of clicks, this feature can take a mapping that looks like this:

4-4

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

And change it to look like this:

Or this:

Step 1. Display iconic view of mapping. Choose Layout | Arrange All Iconic or right-click in the Workspace and select Arrange All Iconic. Step 2. Restore mapping view to normal. Choose Layout | Arrange All or right-click in the Workspace and select Arrange All.
This is the reset point (Normal View with the objects aligned) that, when instructed to execute the Revert to saved command, everyone will be at the same starting point.

Save your work.

PowerCenter 9.x Level I Developer Lab Guide

4-5

Lab 4. Features and Techniques I

Exercise 3: Remove Links


Step 1. Remove Links. Click-and-drag the pointer over the blue link lines that are between the exp_ODS_EMPLOYEE and the ODS_EMPLOYEE target definition.

By default, each selected link changes in color from blue to red. If any other objects (e.g., transformations) were selected along with the links, redo the process. Press the Delete key to remove the connections. Ensure no icons are deleted.

Exercise 4: Manual Linking


This exercise will demonstrate the proper technique to manually link ports between transformations. Step 1. Manually create links. In the exp_ODS_EMPLOYEE expression, left-click and hold the mouse on the white space to the right of the NAME_out text. Drag the cursor towards the ODS_EMPLOYEE target definition.

The cursor does not change to a link icon so you cannot create a link this way. To successfully create a link, the cursor must originate on text in any column visible (e.g. Name, Expression, Data type, etc.) not the white space to the right of the text.

4-6

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Now, left-click and hold the mouse on the NAME_out text. Drag the cursor towards the ODS_EMPLOYEE target definition.

Now the cursor does change to a link icon so you can create a link this way. Drag the cursor onto the target NAME port to create a link. Delete the link to try another manual link method. Select only the output ports (Ctrl-click) in the exp_ODS_EMPLOYEE expression and drag them onto the ODS_EMPLOYEE target definition.

In order to be successful, the port data types must be compatible. If the ports are out of order, but match by name, consider Autolink as an option (see later).

Exercise 5: Revert to Saved


While editing an object in the Designer, if unwanted changes are made there is a way to revert to a previously saved version undoing the changes since the last save. The Revert to Saved feature works with the following objects: sources, targets, transformations, mapplets and mappings.

PowerCenter 9.x Level I Developer Lab Guide

4-7

Lab 4. Features and Techniques I

Step 1. Revert to saved.


For mappings, Revert to Saved reverts all changes to the mapping, not just selected objects. Only the active mapping in the workspace is reverted. In the Source Analyzer, Warehouse Designer and Transformation Developer, individual objects may be reverted.

Select Edit | Revert to Saved.

Select Yes to proceed. Edit the exp_ODS_EMPLOYEE expression. In the Ports tab, select the NAME_out port and click the Delete button. Similarly, delete the DATE_HIRED ports. Edit the sq_EMPLOYEE source qualifier similarly to remove the DATE_HIRED port. Select only the sq_EMPLOYEE source qualifier and choose
Edit | Revert to Saved.

The same dialog box appears all changes must be reverted. Select Yes to proceed.

Exercise 6: Link Path


Tracing link paths allows the developer to highlight the path of a port either forward or backward through an entire mapping or mapplet.

4-8

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Step 1. Trace a link path. To make sure all students are on the same page, Revert to
Saved.

Right-click on EMPLOYEE_ID in the sq_EMPLOYEE Source Qualifier and select Select Link Path | Forward.

Notice how the path for EMPLOYEE_ID, from sq_EMPLOYEE all the way to ODS_EMPLOYEE, is highlighted in red.

Notice how the NAME_out ports path not only shows where it proceeds to the ODS_EMPLOYEE target definition, but also from its origin all the way back to the EMPLOYEE source definition. Both the FIRST_NAME and LAST_NAME are used in the formula to produce NAME_out, so both links are highlighted in red. Similar to the last example, with the FIRST_NAME going forward it doesnt stop at the exp_ODS_EMPLOYEE Expression where the port is input only. Because it is used in the formula to calculate the NAME_out, the path continues to the target.

Right-click on the NAME_out port in the exp_ODS_EMPLOYEE expression and click select Link Path |
Both.

Right-click on the FIRST_NAME port in the EMPLOYEE source definition and click Select Link Path | Forward.

PowerCenter 9.x Level I Developer Lab Guide

4-9

Lab 4. Features and Techniques I

Exercise 7: Autolink by Name and Position


Step 1. Autolink by name.
Developers can automatically link ports by name in the Designer. Use any of the following options to automatically link by name: Link by name Link by name and prefix Link by name and suffix. The Designer adds links between input and output ports that have the same name. Linking by name is case insensitive. Link by name when using the same port names across transformations.

Revert to Saved

to reset the mapping.

Remove the links between the exp_ODS_EMPLOYEE expression and the ODS_EMPLOYEE target definition. From the Main Menu, choose Layout | Autolink. The Autolink dialog box opens. Another technique is to right-click in the Workspace and the same dialog box will open.

Using the drop down list, only one transformation may be selected in the From Transformation box and one to many transformations may be selected in the To Transformations section. For objects that contain groups such as router transformations or XML targets, select the group name from the To Transformations list.

Select the exp_ODS_EMPLOYEE transformation from the From Transformation drop-down menu; then highlight the ODS_EMPLOYEE transformation in the To Transformations box. Click OK. The Designer adds links between input and output ports that have the same name, regardless of case.

Notice that Name_out is not linked to Name.

4 - 10

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Step 2. Autolink by name and prefix or suffix.


When autolinking by name, the Designer adds links between ports that have the same name, case insensitive. The Designer also has the ability to link ports based on prefixes or suffixes defined. Adding suffixes and/or prefixes in port names help identify the ports purpose. For example, a suggested best practice is to use the suffix _out when the port is derived from input ports that were modified as it passes through the transformation. Without this feature, Autolink would skip over the names that dont match and force the developer to manually link the desired ports.

Delete the links between exp_ODS_EMPLOYEE and ODS_EMPLOYEE.


Layout | Autolink.

Select the exp_ODS_EMPLOYEE transformation from the From Transformation drop-down menu; then highlight the ODS_EMPLOYEE transformation in the To Transformations box. Select the Name radio button. Click More to view the options for entering prefixes and suffixes. Note the button toggles to become the Less button. Type _out in the From Transformation Suffix field.

Click OK and the results should look as follows:

Step 3. Autolink by position.


The Autolink by position feature links the first output port to the first input port, the second output port to the second input port, and so forth. Use this option when creating transformations with related ports when applicable in the same order. The data type, precision and scale must

Revert to Saved

to reset the mapping.

Remove the links between the exp_ODS_EMPLOYEE Expression and the ODS_EMPLOYEE target definition. Choose Layout | Autolink or right-click in the Workspace and select Autolink.

PowerCenter 9.x Level I Developer Lab Guide

4 - 11

Lab 4. Features and Techniques I

be considered when using this Autolink option. In addition, not every port visible in the Normal View has both the input and the output ports selected. In other words, some ports may be required to create an output port (derived port), however, are not needed down stream. A best practice is to uncheck the output port of those ports deemed to be input only. It not only gives the mapping a cleaner look, it simplifies features like Autolink by position.

Select the transformations and targets. Select Position.

As noted above, ports that have incompatible data types will not link automatically. Ports with compatible data types will link, because they do pass the validation check. However, it is a best practice to double-check the results of the Autolink.

Click OK. The Designer links the first output port to the first input port, the second output port to the second input port, and so forth.

Exercise 8: Moving Ports


You may want to move ports within a transformation, for example, to group them or reflect the Target port order for clearer display. Step 1. Use the Up and Down arrows to move a port.
Revert to Saved

to reset the mapping.

Open the exp_ODS_EMPLOYEE expression and click on the Ports tab. Single-click on the TYPE_CODE port and move it up to the top using the Up arrow corner of the toolbar. icon found in the upper right

The results will look as follows:

4 - 12

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Step 2. Use drag-and-drop method to move a port. Single-click on the number to the left of the DATE_HIRED port. Single-click and hold the left mouse button and note the faint square that appears at the bottom of the pointer.

While still holding the left mouse button, position the pointer just below the TYPE_CODE port until a red line appears under it.

Release the mouse button and DATE_HIRED will appear below TYPE_CODE.

Click on the Cancel button to discard the changes.

PowerCenter 9.x Level I Developer Lab Guide

4 - 13

Lab 4. Features and Techniques I

Exercise 9: Shortcut from Normal View to Edit Port


There is a shortcut to go from the Normal View directly to the port desired in the Edit View this is especially useful in transformation objects that have dozens of ports. Prior to completing the next couple of exercises, you must delete the TYPE_CODE port from exp_ODS_EMPLOYEE transformation in the m_ODS_Employee mapping. This demonstrates a useful technique.
Revert to Saved

to reset the mapping.

Remove the links between the sq_EMPLOYEE source qualifier and the exp_ODS_EMPLOYEE expression. Resize or scroll down until the TYPE_CODE port appears in the exp_ODS_EMPLOYEE expression. Double-click on the TYPE_CODE port. This is the shortcut that goes directly to the port in the Edit View. Delete the port by using the icon.

Click on the OK button and the transformation objects should look as follows:

Exercise 10: Copy Columns versus Link Columns


Use the mouse to choose the copy columns the standard toolbar. Use the mouse to choose the link columns the standard toolbar. button in button in

4 - 14

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Step 1.Copy columns.


As a result of the previous exercise, note the TYPE_CODE port exists in the sq_EMPLOYEE transformation however, it does not appear as a port in the exp_ODS_EMPLOYEE transformation.

Select Layout | Copy Columns or click the Copy Columns button. Use the drag-and-drop method to copy the TYPE_CODE port from the sq_EMPLOYEE source qualifier to the exp_ODS_EMPLOYEE expression:

The exp_ODS_EMPLOYEE expression displays the TYPE_CODE port just copied from the sq_EMPLOYEE source qualifier as shown above. However, in this mode no link should have been created. Step 2. Link columns. Select Layout | Link Columns or the Link Columns button. Link the TYPE_CODE port from sq_EMPLOYEE source qualifier to the exp_ODS_EMPLOYEE expression.

PowerCenter 9.x Level I Developer Lab Guide

4 - 15

Lab 4. Features and Techniques I

Step 3. Copy and link columns. The Link Columns option can also be used to copy and link ports. Delete the TYPE_CODE port from the exp_ODS_EMPLOYEE expression. Drag-and-drop the TYPE_CODE port from the sq_EMPLOYEE source qualifier to the exp_ODS_EMPLOYEE expression.

Exercise 11: Create Transformation Methods


Step 1. Transformation toolbar method.
When the mouse pointer hovers over a transformation icon in the toolbar that the name of the transformation object appears momentarily. In addition, some transformations will be grayed out, indicating that they are not available in the tool (e.g. Transformation Developer, Mapplet or Mapping Designer).

Revert to Saved

to reset the mapping.

On the Transformation toolbar, find the aggregator transformation button and single-click.

Move the mouse into the Workspace. The cursor changes to crosshairs. Single-click in the Workspace where you want to place the transformation. The selected transformation appears in the desired location of the Workspace and the cursor changes back to an arrow.

4 - 16

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Step 2. Transformation Method Menu Select Transformation| Create.

Select the Aggregator from the drop-down list.

Enter the name agg_TargetTableName and click Create. Click on the Done button and the new transformation appears in the Workspace.

PowerCenter 9.x Level I Developer Lab Guide

4 - 17

Lab 4. Features and Techniques I

Exercise 12: Zoom and Scale-to-Fit


A mapping may be difficult to view in the Workspace and the developer may want to change the magnification to see it better. Below are the features and techniques you can use to adjust the magnification. Step 1. Zoom out by using the toolbar option.
Revert to Saved

to reset the mapping.

There are features to change the magnification of the contents of the Workspace. Use the toolbar or the Layout menu options to set zoom levels. The toolbar has the following zoom options:

Step 2. Zoom out.


Zoom out 10% on button. Uses a point selected as the center point from which to decrease the current magnification in 10 percent increments.

Click on the Zoom out 10% on button

on the toolbar.

Click anywhere in the Workspace and the mapping will zoom out by 10% each time the mouse is clicked. Keep clicking until the mapping is small enough to fit within the window. Step 3. Zoom in.

Zoom in 10% on button increases the current magnification of a rectangular area selected. Degree of magnification depends on the size of the area selected, Workspace size, and current magnification.

Click on the Zoom in 10% on button

on the toolbar.

Click anywhere in the Workspace and the mapping will zoom in by 10% each time the mouse is clicked.

4 - 18

PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Step 4. Scale to fit. This feature scales all objects to fit in the Workspace. Toggle off the Zoom in 10% on button Click on the Scale to Fit .

button in the toolbar.

Another way to do this is to select Layout | Scale to Fit.

Exercise 13: Designer Options


The course materials will display transformation objects with the following attributes displayed: Name, Expression (where applicable), Data type and Length/Precision. To add Length/Precision to your display options: Select Tools | Options. Click on the Tables tab. For both Source and Target in the drop-down list, select Key Types, Name, Datatype, Length/Precision. For each of the transformation types Source Qualifier, Update Strategy, Filter, Lookup, Joiner, Router, Mapplet and Sorter, select Name, Datatype, Length/Precision . For the Expression and Aggregator, select Name, Expression , Data type, Length/Precision . Click OK Notice how the normal view of your transformations has changed.

PowerCenter 9.x Level I Developer Lab Guide

4 - 19

Lab 4. Features and Techniques I

Reference
Copy Columns versus Link Columns
In the Mapping Designer, copying ports from one transformation to another is a valuable time saver. In lieu of entering the ports manually (name, datatype, length/precision), developers can use drag-and-drop to create ports in the desired transformation. The Designer includes a toggle feature to switch between Copy Columns and Link Columns. With Copy Columns, a port may be dragged from one transformation to another, preserving the name, datatype, and length/precision. With Link Columns, if the desired port does not exist in the transformation to be linked, it will copy and link the port. If the port does exist, the port can simply be linked. A link is only made if the transformation satisfies Designer validation, e.g. datatype compatibility. If linking and copying, the port will still be copied.

Creating Transformations
Developers can create transformations using the following Designer tools:
Mapping Designer.

Create transformations that connect sources to targets. Transformations in a mapping cannot be used in other mappings unless Developers configure them to be reusable.
Transformation Developer.

Create reusable transformations that Developers can use in multiple mappings.


Mapplet Designer.

Create and configure a set of transformations, called mapplets that Developers can use in multiple mappings

You can create transformations from scratch using either the transformation toolbar or the Transformation | Create menu option. Using the transformation toolbar, developers can click and drop transformations to a desired location in the
4 - 20 PowerCenter 9.x Level I Developer Lab Guide

Lab 4. Features and Techniques I

Workspace. The transformation takes a default name. Using the Transformation | Create option, developers select the desired transformation from a drop down list and enter a name (no default).

Other Zoom Options


The layout menu has the following Zoom options:

Zoom Center maintains the center point of the Workspace and zooms in or out by 10 percent.
Zoom Center

Zoom Point uses a point selected as the center point from which to zoom in or out by 10 percent increments.
Zoom Point

Zoom Rectangle increases the current magnification of a rectangular area selected. Degree of magnification depends on the size of the area selected, Workspace size, and current magnification.
Zoom in based on rectangle

Zoom Normal
Zoom Normal.

Sets the zoom level to 100 percent.

Scale to Fit This feature scales all objects to fit in the visible Workspace. Zoom Percent
Zoom Percent.

Select the desired percent and zoom in or out by

that percent.

PowerCenter 9.x Level I Developer Lab Guide

4 - 21

You might also like