PWX Training

Post on 17-Nov-2014

683 views 18 download

Transcript of PWX Training

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

Power Exchange TrainingNovember 19, 2008

© 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

© 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.

© 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

© 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

© 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

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

Examples

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

© 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

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

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

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

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

© 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.

© 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

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

Click next

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

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

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

Click Finish

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

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

© 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.

© 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.)

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

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

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

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

Select Multi-Record Datamaps. Click connect.

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

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

© 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.

© 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

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

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

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

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

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

Click Next

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

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

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

Click Finish

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

Click ok

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

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

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

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

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

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

© 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.

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

Questions?