Beruflich Dokumente
Kultur Dokumente
PowerExchange 9.X
Training | CIF CONSULT | Redouane BELBAHRI
Agenda
Objectives
What is PowerExchange
How Does the Team typically use PWX
Power Exchange Batch Architecture
Real Examples
Agenda
1 Objectives
Agenda
This course explains what PowerExchange is and how it is used. We will learn the
Architetue (batch) of PowerEXchange, and the key components
Undestand the PowerExchange Architecture
Describe How PWX Datamaps are used and where they are stored
Create a basic Datamap in the PWX Navigator GUI
Agenda
2 What is PowerExchange
Agenda
Power Exchange (PWX) is a tool we use to parse complex files and pull them into
Designer.
Power Exchange (PWX) is comprised of 3 main components
Change 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.
Remark: Change Data Capture (CDC) and Personal Metadata are out of scope in this presentation
PowerExchange
Batch Platforms
PowerExchange
Change Capture (CDC)
Agenda
PowerCenter supports only fixed width files,Informatica VSAM However, PowerExchange has a capability of reading the
reader does not support variable length file. variable length VSAM file.
This file is read using a PowerCenter Normalizer In PowerExchange create a data map for
transformation. the VSAM file by importing the COBOL
PowerCenter does not support the Occurs Depending On clause. copybook.
PowerCenter supports comp, comp-3, comp-6 and comp-x fields.
Agenda
There is also a lock file for the customer data map. It is 'customer.lck' and is also
stored in the Shared folder. It is used to serialize access to the data map source.
Configuration File
Configuration File
Sets many defaults parameters for PowerExchange
Provide security settings
Communication Settings
Config
Sample File Communication
dbmover.cfg file Params:
LISTENER
Node Name
TCPIP (standard parm)
Port Number
NODE
Node name
TCPIP (standard parm
Host Name or IP address
Port Number
What is a Listener?
5 Real Examples
Examples
OR
Acces
2 Homepage
Example 1 Fixed length VSAM file Demonstration
Of PWX
Create Data Map that convert an EBCDIC file to ASCII file format:
Add a Data Map
Fill in the Schema name and the Data Map Name
Insert the Input File name and its location on the server, Select the fixed option, & change the default
line to EBCDIC & IBM-1047
Enter the name of the source file copybook
Prepare the Cobol file structure Demonstration
Of PWX
1. The Cobol file structure you are being to use should not contains the header informations, if not later you will
have this error
Add a data map Demonstration
Of PWX
1. Insert the file name (data file) that the map will need to read in Informatica
(this file will be on the server).
1. Select fixed or variable depending on the type of file.
2. In the Size box, enter the record length (if not known give 1 as size, will correct later).
3. The screen print above is for a fixed file only.
4. Click Finish
Import Copybook Source Details Demonstration
Of PWX
Column Range:
Enter the start and end column range for the copybook:
Source:
Local. The copybook is located on the PowerExchange Navigator system.
Remote. The copybook is located on a remote system.
1. Enter information about the location and type of metadata that you want to import.
2. Click Next
Import Copybook Local Cobol Details Demonstration
Of PWX
1. Click Finish
Import Copybook Information Demonstration
Of PWX
1. Click OK
Record Definition Demonstration
Of PWX
1. Click OK
Add a data map Demonstration
Of PWX
Physical definition mapped to the relational definition
Table
Record
1. Click OK
Add a data map (EBCDIC) Demonstration
Of PWX
1. Click Close
2. Make a note of the file actual length
3. Click yes
Add a data map (EBCDIC) Demonstration
Of PWX
1. Right click on Test.EBCDIC in the resource explorer (Data Map) and select properties.
2. Select the SEQ Access Method Tab and change the length to 350.
Check the Created Data map Demonstration
Of PWX
Edit Resource Configuration
A PowerExchange Navigator resource configuration defines the location of data maps, personal metadata profiles,and any locally stored
capture registrations and extraction maps.
Note: You cannot edit the resource configuration if a PowerExchange resource is open.
Add a data map (EBCDIC) Demonstration
Of PWX
Example with Occurs
Send data map to Node Demonstration
Of PWX
Perform a Row Test (1/3) Demonstration
Of PWX
2. In the Database Row Test dialog box select NRDB (Nonrelational data source )
3. Enter the name of the file in the Override File Name box (file should be in the server)
4. Click Go
Perform a Row Test (2/3) Demonstration
Of PWX
Perform a Row Test Demonstration
Of PWX
Example with Occurs (3/3)
Created datamap on the integration Server Demonstration
Of PWX
Import the created dmx as datamap Demonstration
Of PWX
Import the source into PowerCenter Designer Demonstration
Of PWX
1. Select the data map that you want to import from PWX
2. Click ok
Demonstration
Import the source into PowerCenter Designer Of PWX
Demonstration
Metadata Extensions Of PWX
Note here, there is a Metadata Extension created automatiqually in the source VSAM.
Demonstration
Use the Source in a mapping Of PWX
Use the Source in a mapping Demonstration
Of PWX
With Occurs
Demonstration
Create new Connection for PWX Of PWX
1. In the Workflow manager, create new Application Connection to use in the session,
2. Choose PWX NRDB Batch
3. Click OK
Demonstration
Create new Connection for PWX Of PWX
1. In the Workflow manager, create new Application Connection to use in the session,
2. Choose PWX NRDB Batch
3. Choose Code Page: IBM1047
4. Click OK
Demonstration
PC Session runs Of PWX
1. When the PC session runs, it would talk to the PWX Listener on the Integration Server, and the PWX Listener
would open the file, read it, and send the data to the PowerCenter session
Creating a Data map
What we have done
\DATAMAPS\Training.EBCDIC.dmp
Example 2 Variable Length VSAM file
Coming soon
Variable Length VSAM examples
Example 1
A VSAM data set consists of two record types of different lengths distinguished by the value in a field that is in the same location in both record types.
01VSAMVAR-REC1.
10 KEY-FIELDPIC X(2).
10 REC-TYPEPIC X.
10 CHAR-FIELDPIC X(10).
01VSAMVAR-REC2.
10 KEY-FIELDPIC X(2).
10 REC-TYPEPIC X.
10 CHAR-FIELDPIC X(20).
Example 2
A VSAM data set consists of one record type whose last field is optional.
01VSAMVAR-REC1.
10 FIELD1PIC X(2).
10 FIELD2PIC X.
10 FIELD3PIC X(10).
Example 3
A VSAM data set consists of a record that contains a variable length field. The length of the field is contained in a field prior to the variable length field.
01VSAMVAR-REC1.
10 FIELD1PIC X(2).
10 FIELD2PIC 99.
10 FIELD3PIC X occurs 10 times depending on FIELD2.
Windows Registry
Upgrade or Migrate Datamaps across different platforms
using PowerExchange Navigator
import the datamaps that you want to migrate.
Copy the .dmp files to theLocal Path for your new PowerExchange Navigator environment.
Configure a PowerExchange Datamap to retain record
values of bad data
Is it possible to extract the records or find the record information any where which gets
skipped as bad data, so that we can report it and send it to our concerned team and
make sure that we dont have the bad data in the source file.
To retain records with bad data in the source file do the following:
1. Select the Data Checking option in the Datamap properties.
2. Select "Skip row and write log file msg" under the How do you want to handle Bad Field Data? list. This option will skip the
records with bad data and writes the record to the PowerExchange Listener Detail log.
3. Clear the Suppress Data Logging to retain the record.
VSAM
VSAM stands for Virtual Storage Access Method. It is a method of managing files that is
used mainly on mainframes but also on PCs. Specifically, VSAM can speed up access to
file data by using a reverse index of records appended to files. This index is called a B+
tree.
When you install PowerCenter, the installation program creates a template file named
ConnectionParam.prm that lists the connection attributes you can override for FTP,
queue, loader, and application connections. The ConnectionParam.prm file is located in
the following directory: <PowerCenter Installation Directory>/server/bin
UPACKED Fields
For the UPACKED Fields. In the output, we expect sign as F instead it was
coming as C. This was an issue in the configuration settings. To resolve this we
need to add the following setting in dbmover.cfg file.
NUMERICSIGN=F
Many Thanks for you time today!