PWX Training

35
© Affiliated Computer Services, Inc. (ACS) 2007, 2008 Power Exchange Training November 19, 2008

Transcript of PWX Training

Page 1: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007, 2008

Power Exchange TrainingNovember 19, 2008

Page 2: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 2

Power Exchange Training Overview

What is Power Exchange & what can it be used for How does the team primarily use Power Exchange How does it work Common Problems Examples of how to use Power Exchange Questions

Page 3: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 3

What is Power Exchange

Power Exchange (PWX) is a tool we use to parse complex files and pull them into Designer.

Power Exchange (PWX) is comprised of 3 componentsData Capture – Allows you to monitor and retrieve changes

that have occurred to data in which you have expressed an interest.

Data Maps – Used to access data sources like IMS databases, VSAM files and flat files.

Personal Metadata - Allows you to browse meta data from remote databases.

Page 4: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 4

How Does the Team typically use PWX

1. Complex Flat File Parsing Complex copybooks with multiple record types Creating multiple records out of occurs depending on or blowing them

out to the full range of the occurs2. Verifying that the layout is correct with a row test

Data from the row test can be copied into a text file and then imported into Excel as a comma delimited file.

3. Making sure that the input data can be seen correctly by PWX 4. Interaction with Power Center

Pulling Sources and Targets set up with PWX into Informatica Designer

Page 5: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 5

How Does PWX work?

1. Client/Server tool Creation of a data map on a client which gets pushed to the

server Power Center sources/targets the PWX data map when you

use the option to Import from PWX

Page 6: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 6

Common Problems

Developers need to be careful not to step on each other – Node1(server) is easily overlaid

Using the wrong length, file, copybook, setting (variable or fixed) can cause the data maps not to work correctly

If there are multiple record types in a file, don’t forget to set your record codes. This keeps Power Center from having to look at non-necessary data

Page 7: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 7

Examples

Fixed Length File Variable Length File Variable Length File with multiple record types

Page 8: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 8

Example 1 – Fixed length VSAM file

Add a Data Map Fill in the Schema name and the Data Map Name Insert the Input File name and it’s location on the server, Select

the fixed option, & change the default line to EBCDIC & IBM-1047 Enter the name of the source file copybook

Page 9: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 9

Right click on the data map folder to add a data map.

Page 10: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 10

Fill in the Schema Name and the Data Map Name Click next

Page 11: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 11

Insert the file name that the map will need to read in Informatica (this file will be on the server). Select fixed or variable depending on the type of file. The screen print above is for a fixed file only. The next screen print would be for a variable file.

Page 12: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 12

Insert the file name that the map will need to read in Informatica (this file will be on the server). Select fixed or variable depending on the type of file. The screen print above is for a variable file only. Click finish

Page 13: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 13

Click next

Page 14: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 14

Tell Power Exchange where you have your copybook located on your PC.Click next.

Page 15: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 15

Click Finish

Page 16: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 16

Make a note of the files actual length. Click yes.

Page 17: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 17

Right click on dctest.testprvcap in the resource explorer and select properties.Select the SEQ Access Method Tab and change the length to 30.

Page 18: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 18

Save the data map to Power Exchange and Node1. Click ok (You may have to select node1, the value of default usually shows up here.)

Page 19: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 19

Page 20: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 20

Go into Informatica designer and open the Source Analyzer. Select Sources and then Select Import from PowerExchange.

Page 21: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 21

Select Multi-Record Datamaps. Click connect.

Page 22: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 22

Select the data map that you want to import from PWX Click ok

Page 23: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 23

If the copybook has multiple layouts it will look like this when you expand it, you can then select the layout you want (shown below). If there is only 1 layout then select the main folder as shown above in the previous slide.

Page 24: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 24

Example 2 – Variable Length VSAM file

Add a Data Map Fill in the Schema name and the Data Map Name Insert the Input File name and it’s location on the server, Select

the variable option, select VBP2, & change the default line to EBCDIC & IBM-1047

Enter the name of the source file copybook

Page 25: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 25

Fill in the Schema Name and the Data Map Name Click next

Page 26: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 26

Select variable option and select VBP2. The default line always needs to be EBCDIC & IBM-1047.

Page 27: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 27

Click Next

Page 28: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 28

Tell Power Exchange where you have your copybook located.Click next.

Page 29: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 29

Click Finish

Page 30: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 30

Click ok

Page 31: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 31

Select Generate Unique Name. Select Apply to rest of import session. Click ok

Page 32: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 32

To skip the date header record Right click on the record_code field and select properties

Page 33: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 33

Set the Record ID Value to 21 Click ok Then save to PWX and node1.

Page 34: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 34

Example 3 – Variable Length VSAM file with multiple record types

Add a Data Map Fill in the Schema name and the Data Map Name Insert the Input File name and it’s location on the server, Select

the variable option, select VBP2, & change the default line to EBCDIC & IBM-1047

Enter the name of the source file copybook After the data map has been saved, the record codes will need to

be updated before saving the data map to node1 so that you can differentiate between the record types.

Page 35: PWX Training

© Affiliated Computer Services, Inc. (ACS) 2007Slide 35

Questions?