Вы находитесь на странице: 1из 35

Power Exchange Training

November 19, 2008

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


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

Slide 2
© Affiliated Computer Services, Inc. (ACS) 2007
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 components
Data 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.

Slide 3
© Affiliated Computer Services, Inc. (ACS) 2007
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 occurs
1. 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.
1. Making sure that the input data can be seen correctly by
PWX
2. Interaction with Power Center
 Pulling Sources and Targets set up with PWX into Informatica
Designer

Slide 4
© Affiliated Computer Services, Inc. (ACS) 2007
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

Slide 5
© Affiliated Computer Services, Inc. (ACS) 2007
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

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

 Fixed Length File


 Variable Length File
 Variable Length File with multiple record types

Slide 7
© Affiliated Computer Services, Inc. (ACS) 2007
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

Slide 8
© Affiliated Computer Services, Inc. (ACS) 2007
 Right click on the data map folder to add a data map.

Slide 9
© Affiliated Computer Services, Inc. (ACS) 2007
 Fill in the Schema Name and the Data Map Name
 Click next

Slide 10
© Affiliated Computer Services, Inc. (ACS) 2007
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.

Slide 11
© Affiliated Computer Services, Inc. (ACS) 2007
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

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

Slide 13
© Affiliated Computer Services, Inc. (ACS) 2007
Tell Power Exchange where you have your copybook located on your PC.
Click next.

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

Slide 15
© Affiliated Computer Services, Inc. (ACS) 2007
 Make a note of the files actual length.
 Click yes.

Slide 16
© Affiliated Computer Services, Inc. (ACS) 2007
Right click on dctest.testprvcap in the resource explorer and se
properties.
Select the SEQ Access Method Tab and change the length to 3

Slide 17
© Affiliated Computer Services, Inc. (ACS) 2007
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.)

Slide 18
© Affiliated Computer Services, Inc. (ACS) 2007
Slide 19
© Affiliated Computer Services, Inc. (ACS) 2007
Go into Informatica designer and open the
Source Analyzer. Select Sources and
then Select Import from
PowerExchange.

Slide 20
© Affiliated Computer Services, Inc. (ACS) 2007
 Select Multi-Record Datamaps.
 Click connect.

Slide 21
© Affiliated Computer Services, Inc. (ACS) 2007
 Select the data map that you want to
import from PWX Click ok

Slide 22
© Affiliated Computer Services, Inc. (ACS) 2007
 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.

Slide 23
© Affiliated Computer Services, Inc. (ACS) 2007
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

Slide 24
© Affiliated Computer Services, Inc. (ACS) 2007
 Fill in the Schema Name and the Data Map Name
 Click next

Slide 25
© Affiliated Computer Services, Inc. (ACS) 2007
 Select variable option and select VBP2.
The default line always needs to be
EBCDIC & IBM-1047.

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

Slide 27
© Affiliated Computer Services, Inc. (ACS) 2007
Tell Power Exchange where you have your copybook
located.
Click next.

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

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

Slide 30
© Affiliated Computer Services, Inc. (ACS) 2007
 Select Generate Unique Name.
 Select Apply to rest of import session.
 Click ok

Slide 31
© Affiliated Computer Services, Inc. (ACS) 2007
 To skip the date header record
 Right click on the record_code field and select
properties

Slide 32
© Affiliated Computer Services, Inc. (ACS) 2007
 Set the Record ID Value to 21
 Click ok
 Then save to PWX and node1.

Slide 33
© Affiliated Computer Services, Inc. (ACS) 2007
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.

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

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

Вам также может понравиться