Professional Documents
Culture Documents
GDV9P km130 Instructorexercises
GDV9P km130 Instructorexercises
GDV9P km130 Instructorexercises
cover
Front cover
Trademarks
IBM® and the IBM logo are registered trademarks of International Business Machines
Corporation.
The following are trademarks of International Business Machines Corporation, registered in
many jurisdictions worldwide:
DataStage® DB2® FileNet®
InfoSphere® QualityStage®
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other
countries, or both.
Other product and service names might be trademarks of IBM or other companies.
TOC Contents
Instructor exercises overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Exercises description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
viii Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Estimated time
00:15
Introduction
This lab introduces the Information Server Web Console.
Requirements
A user ID student has been created and assigned all Suite and
Component authorization roles. This user ID also has DataStage
credentials.
The Information Server administrator user ID is isadmin / isadmin.
© Copyright IBM Corp. 2012 Exercise 1. Introduction to Information Server Data Integration 1-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Instructor Exercises Guide
1-2 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
© Copyright IBM Corp. 2012 Exercise 1. Introduction to Information Server Data Integration 1-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Instructor Exercises Guide
__ 3. Select student. Then click Open User. Then expand the Suite Component folder.
__ 4. Explore the Roles assigned to student. These include Suite Roles that apply to
Information Server as a whole as opposed to individual products and tools. These
also include Suite Component Roles that apply to individual products and tools.
For example, student has been assigned the role DataStage and QualityStage
Administrator. So student can log onto DataStage as an administrator, and has full
authorizations to work in DataStage. Actually, as you observe, student has full
authorizations to log onto and work with any Information Server product or tool.
1-4 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Estimated time
00:20
Introduction
In this lab you will create a blueprint using Blueprint Director
Requirements
If you are using the course images, all the requirements have been
implemented. If you are not using the course images, the requirements
for this unit are as follows:
Information Server v8.7 has been installed. Products include
FastTrack, Metadata Workbench, DataStage, and Information
Services Director.
Blueprint Director has been installed as a stand-alone product. The
install package is available in the IBM\InformationServer\Blueprint
folder on the client.
User student / student has administration authorization for all
Information Server products, including those listed above.
2-2 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 5. Drag the File icon from the Files folder in the Palette to the blueprint diagram. This
will represent the files containing the raw customer data. Label it “Customer file
data”. To change the default name, select the icon and then change the name in the
Properties tab at the lower right corner of the window.
2-4 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 6. Drag the Database icon from the Data Stores folder in the Palette to the blueprint
diagram. This will represent the tables in the staging area. Label it “Staging source
tables”.
__ 7. Drag the Database icon from the Data Stores folder in the Palette to the blueprint
diagram. This will represent the tables in the target customer tables area. Label it
“Customer data tables”.
__ 8. Periodically, click Save.
__ 9. Drag the ETL icon from the Operations folder in the Palette to the blueprint
diagram. This will represent the ETL job that will load the tables in the staging area.
Label it “Load staging tables”. Locate it between the Customer file data and
Staging source tables icons on the diagram.
__ 10. Drag the ETL icon from the Operations folder in the Palette to the blueprint
diagram. This will represent the ETL job that will load the tables in the target
customer data tables. Label it “Load customer tables”. Locate it between the
Staging source tables and Customer data tables icons on the diagram.
__ 11. Drag the Information Service icon from the Consumers and Delivery folder in the
Palette to the blueprint diagram. This will represent the web services used to access
data in the target customer tables area. Label it “Customer data services”.
__ 12. Add arrows that represent the flow of data to and from each of the ETL job icons.
Label the arrows as shown. Also add an arrow from the Customer data tables to
the Customer data services labeled “Retrieve”. To draw an arrow hover over the
ETL icon until you see the arrows. Then drag them from over to the icon they are to
be connected to.
2-6 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
2-8 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 4. Click Close.
2-10 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Estimated time
00:30
Introduction
In this lab you will create a FastTrack mapping specification and
generate a DataStage job form it.
Requirements
If you are using the course images, all the requirements have been
implemented. If you are not using the course images, the requirements
for this unit are as follows:
DB2 SAMPLE database has been created.
An ODBC data source to the SAMPLE database has been created.
The customer staging and target customer data tables have been
created in the SAMPLE database. These can be created by running
the CreateAllCustomerTables job sequence in the
KM130_DSJobs.dsx file.
3-2 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 2. Click Home.
__ 3. Click New Project. In the Create Project window Name box, type FTProj.
Afterwards, click Next.
__ 5. Click Next repeatedly to move through each of the Create Project windows,
glancing at each. When you reach the end, click Finish.
3-4 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 3. Click Test Connection. If valid, click Save & Close. If prompted for database
authorization, enter db2inst1 / db2inst1.
3-6 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 4. Expand the SAMPLE database and then select the OVERSRC and OVERTRG
schemas.
__ 5. Click Import Metadata. Move through the wizard, entering the following information
when prompted. Afterwards, click Finish.
__ a. Host name is EDSERVER.IBM.COM.
__ b. Database name is SAMPLE.
__ 6. Click Metadata>Metadata Repository. Expand the SAMPLE database metadata.
Notice the tables in each of the schema. OVERSRC contains the staging tables.
OVERTRG contains the customer data tables.
__ 3. Click Mappings in the list at the left of the Mapping Editor window.
3-8 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 4. Click the Browser tab in the top right corner and expand the Database Metadata
folder. Drag all the columns from the OVERTRG.CCUSTS table and the
OVERTRG.LICUSTS table to the Target Field column in the Mapping Editor.
__ 6. Click on the Rule Expression cell to the right of the LICUSTS.LNAME field. Then
click the Transformation tab at the bottom. In the Rule Expression box type
FIELD(CUSTOMER_STG.CUSTNAME, ‘,’, 1). In the Rule Description box type
“Extract the first segment from the CUSTNAME string.”
__ 7. Click on the Rule Expression cell to the right of the LICUSTS.FNAME field. Then
click the Transformation tab at the bottom. In the Rule Expression box type
FIELD(CUSTOMER_STG.CUSTNAME, ‘,’, 2). In the Rule Description box type
“Extract the second segment from the CUSTNAME string.”
3-10 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 8. Click Properties, and then select the Filter tab. In the Rule Expression box type
CUSTOMER_STG.CREDITLIMIT > ‘100000’.
__ 9. Click the Switch tab. In the cell to the left of the CCUSTS column, type
CUSTOMER_STG.IND = ‘C’. In the cell to the left of the LICUSTS column, type
CUSTOMER_STG.IND = ‘I’. At the bottom of the window, select the Log Rejects
box.
3-12 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 5. Click Next repeatedly until you reach the end. Then click Finish.
3-14 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Estimated time
00:20
Introduction
In this lab, you will log into DataStage Designer and then examine the
job that was generated from the mapping specification you create in
the previous lab.
Requirements
The KM130DSLabFolder.dsx file has been imported into your
DataStage project.
4-2 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 3. Locate the LoadCustomerData_MS job that you generated from your FastTrack
mapping specification in the _Over>Jobs folder in the Repository window.
Double-click on it to open it.
Note
If you were not able to successfully generate the DataStage LoadCustomerData_MS job,
you can use the LoadCustomerData_MS_orig job.
4-4 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty window on the top right side. Also notice the derivations for the L0_FNAME and
L0LNAME columns. Afterwards, click OK.
4-6 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 8. Double-click on the LICUSTS target ODBC Connector stage. Type db2inst1 /
db2inst1 in the Username and Password boxes. In the Table action property,
select Truncate. Afterwards, click OK.
__ 9. Double-click on the Reject_1 Sequential File stage. Select the File property and
then browse for the /data/KM130Files/Temp directory. Type Rejects.txt in the File
name box and then click OK.
4-8 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Note
If you do not have any DataStage experience, you can open the
LoadCustomerData_MS_complete job and then skip to step 6) below (the compile step).
__ 1. Open the Filter Transformer. Here, the filter constraint needs to be edited, if the job
is to compile successfully.
__ a. Click the Constraints icon at the top left corner of the stage window
(second-from-the left icon in the toolbar).
__ b. Double-click in the Constraint column cell to the right of first link name. This
opens the DataStage Expression Editor. Highlight the column name and then
click your right mouse button. Select Input column and then select the
CREDITLIMIT column. Afterwards, click OK.
__ 2. Open the Switch Transformer. Here, the again constraints need to be edited, if the
job is to compile successfully.
__ a. Open the constraints window. Double-click in the Constraint column cell to the
right of Link_CCUSTS. This opens the DataStage Expression Editor. Highlight
the column name and then click your right mouse button. Select Input column
and then select the C1_IND column.
__ b. Repeat the above in the cell to the right of Link_LICUSTS. Afterwards, click OK.
4-10 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 8. Click View>Job log to view the log messages for the job. Notice the performance
statistics displayed on the diagram after the job finishes.
__ 9. Double-click on the LICUSTS stage to open it. Select the Usage folder and then
click View Data. Verify that the IND column only contains “I”, and verify that the
derivations correctly parsed the last and first names into the LNAME and FNAME
columns.
4-12 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Estimated time
00:15
Introduction
In this exercise, you log into Metadata Workbench, browse metadata
assets, and then create a data lineage report.
Requirements
The CUSTOMERS.txt, ORD_DTL.txt, and ORD_HDR.txt files are
shared data files in the Information Server Repository.
Note
Be aware that the metadata assets in the screenshot, here and elsewhere in this lab, may
not always match exactly what you have on your system.
5-2 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ e. Expand the Mapping Specification folder and view the link to the mapping
specification from which the DataStage job was generated.
__ c. Expand the Generated Jobs folder to view the DataStage jobs generated from
the mapping.
5-4 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 2. Click the Discover tab. Select Job in the Asset Type list. Type “_MS” is the
Contains box. Then click Find. This should locate your generated DataStage job,
and possibly some other jobs as well.
__ 4. Click Data Lineage. Notice that the lineage report identifies the database table
sourced by the job and the database tables targeted by the
LoadCustomerData_MS job. It also shows that the Load_CUSTOMER_STG job
loaded the CUSTOMER_STG table. This was a job that was run as part of the
course image configuration.
5-6 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 5. Click Select Columns in the LICUSTS rectangle. Select the FNAME and LNAME
columns, and then click OK. Notice that this identifies the column in the
CUSTOMER_STG table which is mapped to the FNAME and LNAME columns.
Note
Again, be aware that the metadata assets in the screenshot, here and elsewhere in this
lab, may not always match exactly what you have on your system. You may, for example,
see additional jobs writing to the FNAME and LNAME columns, depending on the exact
configuration of your system at the time you run this report. The important point here is that
you see CUSTNAME in CUSTOMER_STG mapped to FNAME and LNAME.
5-8 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 2. Right-click over the Customer file data icon and then click Add Asset Link. Type
Customer.txt in the Asset Link Name box, and then click InfoSphere Metadata
Workbench in the Asset Link Type list.
__ 3. Click Next. Select MWBConn in the Connection list and then click Next.
5-10 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 4. On the Asset selection window select Data File Structure in the Asset Type list
and then click Display Assets. This displays a list of the customer data files.
Note
These three files were used to load the staging area tables. As part of the course image
configuration, these files were added to the Information Server shared Repository. This
was done in DataStage Designer. It is beyond the scope of this course to describe the
process in detail.
__ 5. Select the Customers.txt file and then click Finish. Notice the arrow next to the
Customer file data icon on the blueprint.
5-12 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 6. Similarly, right-click over the Load customer tables icon and then click Add Asset
Link. Type LoadCustomerTablesSpec in the Asset Link Name box. Select
FastTrack Mapping Specification in the Asset Link Type list.
__ 7. Click Next. On the next page select the MWBConn. Then click Next.
__ 8. On the Mapping Specification selection page, select LoadCustomerData_MS.
Then click Finish.
__ 9. Similarly, right-click over the Load customer tables icon, and then click Add Asset
Link. Type LoadCustomerTablesJob in the Asset Link Name box. Select
DataStage Job in the Asset Link Type list.
__ 10. Click Next. On the next page select the DSConn. Then click Next.
__ 11. On the DataStage Project Specification selection page, select DSProject. Then
click Next.
__ 12. On the DataStage Job selection page, select LoadCustomerData_MS. Then click
Finish.
5-14 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
5-16 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
Estimated time
00:40
Introduction
In this lab, you will build a simple DataStage ISD job and then build a
web service that uses the job as a service provider.
Requirements
An ISD project named ISDProj has been created.
An Information Services connection named DSServer has been
configured.
The GetCorpName.html file is in your
C:\CourseData\KM130Files\html directory.
6-2 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 4. Click File>Save. Save your job in the _Over>Jobs folder. Name it
GetCustomerName.
__ 5. From the Real Time folder in the Palette, drag an ISD Input stage to the canvas.
__ 6. From the Real Time folder in the Palette, drag an ISD Output stage to the canvas.
__ 7. From the Processing folder in the Palette, drag a Lookup stage to the canvas.
__ 8. From the Database folder in the Palette, drag an ODBC Connector stage to the
canvas.
__ 9. Draw a link from the ISD Input stage to the Lookup stage. To accomplish this, press
the right mouse button over the ISD stage. Then drag the mouse cursor to the
Lookup stage and release it.
__ 10. Similarly, draw a link from the ODBC Connector stage to the Lookup stage. The link
from the ODBC Connector stage to the Lookup stage should be a dotted line,
indicating that it is a lookup reference link. Then draw a link from the Lookup stage
to the ODBC Connector stage.
__ 11. Select the link name coming from the ODBC Connector, and rename it CCUSTS.
__ 12. Select the link name coming from the ISD Input stage, and rename it ISD_Input.
__ 13. Double-click on the ODBC Connector stage to open it. Type the following
information in the stage, on the Properties tab:
__ a. Data source: SAMPLE
__ b. Username: db2inst1
__ c. Password: db2inst1
__ d. Generate SQL: Yes
6-4 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 14. Click the Columns tab. Then click the Load button. Select the OVERTRG.CCUSTS
table definition in the _Over>Metadata folder. Then click OK. Load all columns.
__ 15. Return to the Properties tab, select the Usage folder, and then click View Data.
Verify that you can view the data. This validates that you have configured the stage
correctly.
__ 16. Click OK to close the stage.
6-6 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 17. Double-click on the ISD Input stage. Click the Output tab. On the Columns tab,
create a column named CUSTID, select VarChar as its type, and type 255 for its
length. Afterwards, click OK to close the stage.
__ c. Drag the CUSTNAME column from the CCUSTS link window to the output link
window on the right.
6-8 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 21. Click the Job Properties icon in the Designer toolbar (fifth from the left). On the
General tab, select Allow Multiple Instance and select Enabled for Information
Services. Afterwards, click OK.
__ 22. Click the Compile icon in the toolbar (under the Window menu). The job should
compile without errors.
Note
If you cannot get your job to work, delete it and then rename the GetCustomerName_orig
job as GetCustomerName. Open that job and compile it.
6-10 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 6. Click the Go to the Information Services Application workspace link. Then click
New to create a new application. Name the application ISDApp.
__ 7. On the lower left side, click New>New Service. Name the new service
GetCorpCustName. Afterwards, click Save Application.
6-12 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 8. Expand the Operations folder and then double-click on the default operation
newOperation1. Change the name of the operation to GetCorpCustNameOp.
__ 9. Click the Select button to select an information provider. When prompted select
DataStage and QualityStage as the Type of provider. Select the
GetCustomerName DataStage job in the DSProject>_Over>Jobs folder.
6-14 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
EXempty __ 10. Click OK. View the information on the Inputs tab. Notice there is one input
argument: custid.
__ 11. Click the Outputs tab. Notice there are two output arguments: custid, custname.
__ 13. Click the Edit button in the lower right corner. Then select REST 2.0 from the Attach
Bindings list.
6-16 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 16. The Deploy Application window displays the services, bindings, and operations to
include for the deployment.
6-18 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
Instructor Exercises Guide
__ 4. Click Submit. The customer name, along with the customer number, should be
returned.
Note
If you do get the “Web page cannot be found” page when you click Submit, verify that the
application is deployed. If it is deployed, open the application and verify that the application
name, service name, and operation name match exactly. If there is a mismatch, then edit
the application and redeploy it. If you get a blank screen, check that you have entered a
valid customer ID, namely, 110621.
6-20 Information Server Data Integration Overview © Copyright IBM Corp. 2012
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V7.0
backpg
Back page