+ All Categories
Home > Documents > a Mapping Help

a Mapping Help

Date post: 08-Apr-2018
Category:
Upload: mhasan2k
View: 217 times
Download: 0 times
Share this document with a friend
23
 Mapping Tab (Transformations View) In the Transformations view of the Mapping tab, you can configure settings for connections, sources, targets, and transformations. You can configure the following nodes: Connections Sources Targets Transformations Connections Node The Connections node displays the source, target, lookup, stored procedure, FTP, external loader, and queue connections. You can choose connection types and connection values. You can also edit connection object values. Figure A-7 displays the Connections settings on the Mapping tab: Table A-7 describes the Connections settings on the Mapping tab: Figure A-7. Mapping Tab - Connections Settings Page 1 sur 22 Mapping Tab (Transformations View) 02/02/2010 ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...
Transcript
Page 1: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 1/22

 

Mapping Tab (Transformations View)

In the Transformations view of the Mapping tab, you can configure settings for connections, sources,targets, and transformations.

You can configure the following nodes:

Connections Sources

Targets Transformations

Connections Node

The Connections node displays the source, target, lookup, stored procedure, FTP, external loader,and queue connections. You can choose connection types and connection values. You can also editconnection object values.

Figure A-7 displays the Connections settings on the Mapping tab:

Table A-7 describes the Connections settings on the Mapping tab:

Figure A-7. Mapping Tab - Connections Settings

Page 1 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 2: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 2/22

Table A-7. Mapping Tab - Connections Settings

ConnectionsNode

SettingsRequired/Optional Description

Type Required

Enter the connection type for relational and non-relationalsources and targets. Specifies Relational for relationalsources and targets.You can choose the following connection types for flat file,XML, and MQSeries sources/Targets:

Queue. Select this connection type to access aMQSeries source if you are using MQ SourceQualifiers. For static MQSeries targets, set theconnection type to FTP or Queue. For dynamicMQSeries targets, the connection type is set to Queue.

MQSeries connections must be defined in theWorkflow Manager prior to configuring sessions. Formore information, see the PowerCenter Connect forIBM MQSeries User and Administrator Guide .

Loader. Select this connection type to use theExternal Loader to load output files to Teradata,Oracle, DB2, or Sybase IQ databases. If you select thisoption, select a configured loader connection in theValue column.To use this option, you must use a mapping with arelational target definition and choose File as the

writer type on the Writers tab for the relational targetinstance. As the PowerCenter Server completes thesession, it uses an external loader to load target files tothe Oracle, Sybase IQ, DB2, or Teradata database.You cannot choose external loader for flat file or XMLtarget definitions in the mapping.Note to Oracle 8 users: If you configure a session towrite to an Oracle 8 external loader target table in bulk mode with NOT NULL constraints on any columns,the session may write the null character into a NOTNULL column if the mapping generates a NULL

output.For details on using the external loader feature, seeExternal Loading.

FTP. Select this connection type to use FTP to accessthe source/target directory for flat file and XMLsources/targets. If you select this option, select aconfigured FTP connection in the Value column. FTPconnections must be defined in the WorkflowManager prior to configuring sessions. For details onusing FTP, see Using FTP.

None. Choose None when you want to read from alocal flat file or XML file, or if you are using anassociated source for a MQSeries session.

The type also specifies lists the connections in the mapping,

Page 2 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 3: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 3/22

Sources Node

The Sources node lists the sources used in the session and displays their settings. If you want to viewand configure the settings of a specific source, select the source from the list.

such as $Source connection value and $Target connectionvalue.You can also configure connection information for Lookupsand Stored Procedures.

Partitions N/A Displays the partitions if the session is partitioned.

Value Required

Enter a source and target connection based on the value youchoose in the Type column. You can also specify the$Source and $Target connection value:

$Source connection value. Enter the databaseconnection you want the PowerCenter Server to usefor the $Source variable. Choose a relational orapplication database connection. You can also choosea $DBConnection parameter. You can use the $Sourcevariable in Lookup and Stored Proceduretransformations to specify the database location for the

lookup table or stored procedure. If you use $Source ina mapping, you can specify the database location inthis field to ensure the PowerCenter Server uses thecorrect database connection to run the session. If youuse $Source in a mapping, but do not specify adatabase connection in this field, the PowerCenterServer determines which database connection to usewhen it runs the session. If it cannot determine thedatabase connection, it fails the session. For moreinformation, see the Transformation Guide.

$Target connection value. Enter the database

connection you want the PowerCenter Server to usefor the $Target variable. Choose a relational orapplication database connection. You can also choosea $DBConnection parameter. You can use the $Targetvariable in Lookup and Stored Proceduretransformations to specify the database location for thelookup table or stored procedure. If you use $Target ina mapping, you can specify the database location inthis field to ensure the PowerCenter Server uses thecorrect database connection to run the session. If youuse $Target in a mapping, but do not specify a

database connection in this field, the PowerCenterServer determines which database connection to usewhen it runs the session. If it cannot determine thedatabase connection, it fails the session. For moreinformation, see the Transformation Guide.

You can also specify the lookup and stored procedurelocation information value, if your mapping has lookups orstored procedures.

Page 3 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 4: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 4/22

You can configure the following settings:

Readers. The Readers settings displays the reader the PowerCenter Server uses with eachsource instance. For more information, see Readers Settings.

Connections. The Connections settings allows you to configure connections for the sources.For more information, see Connections Settings.

Properties. The Properties settings allows you to configure the source properties. For moreinformation, see Properties Settings.

Readers Settings

You can view the reader the PowerCenter Server uses with each source instance. The WorkflowManager specifies the necessary reader for each source instance. For relations sources the reader isRelational Reader and for file sources it is File Reader.

Figure A-8 displays the Readers settings on the Mapping tab (Sources node):

Connections Settings

You can configure the connections the PowerCenter Server uses with each source instance.

Figure A-9 displays the Connections settings on the Mapping tab (Sources node):

Figure A-8. Mapping Tab - Sources Node - Readers Settings

Figure A-9. Mapping Tab - Sources Node - Connections Settings

Page 4 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 5: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 5/22

Table A-8 describes the Connections settings on the Mapping tab (Sources node):

Table A-8. Mapping Tab - Sources Node - Connections Settings

ConnectionsSettings

Required/Optional Description

Type Required

Enter the connection type for relational and non-relationalsources. Specifies Relational for relational sources.You can choose the following connection types for flat file,XML, and MQSeries sources:

Queue. Select this connection type to access aMQSeries source if you are using MQ SourceQualifiers. MQSeries connections must be defined inthe Workflow Manager prior to configuring sessions.For more information, see the PowerCenter Connectfor IBM MQSeries User and Administrator Guide .

FTP. Select this connection type to use FTP to accessthe source directory for flat file and XML sources. If 

you want to extract data from a flat file or XMLsource using FTP, you must specify an FTPconnection when you configure source options. If youselect this option, select a configured FTP connectionin the Value column. FTP connections must bedefined in the Workflow Manager prior to configuringsessions. For details on using FTP, see Using FTP.

None. Choose None when you want to read from alocal flat file or XML file, or if you are using anassociated source for a MQSeries session.

Value Required Enter a source connection based on the value you choose inthe Type column.

Page 5 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 6: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 6/22

Properties Settings

Click the Properties settings to define source property information. The Workflow Manager displaysproperties for both relational and file sources.

Figure A-10 displays the Properties settings on the Mapping tab (Sources node):

Table A-9 describes Properties settings on the Mapping tab for relational sources:

Figure A-10. Mapping Tab - Sources Node - Properties Settings

Table A-9. Mapping Tab - Sources Node - Properties Settings (Relational Sources)

RelationalSourceOptions

Required/Optional Description

Owner Name Optional Specified the table owner name.

User DefinedJoin

Optional

Specifies the condition used to join data from multiple

sources represented in the same Source Qualifiertransformation. For more information about user defined

 join, see “Source Qualifier Transformation” in theTransformation Guide.

TracingLevel

N/A

Specifies the amount of detail included in the session logwhen you run a session containing this transformation. Youcan view the value of this attribute when you click Show allproperties. For more information about tracing level, seeSetting Tracing Levels.

Select

Distinct Optional Selects unique rows.

Pre-session SQL commands to run against the source

Page 6 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 7: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 7/22

Table A-10 describes the Properties settings on the Mapping tab for file sources:

Pre SQL Optionaldatabase before the PowerCenter Server reads the source.For more information about pre-session SQL, see Using Pre-and Post-Session SQL Commands.

Post SQL Optional

Post-session SQL commands to run against the sourcedatabase after the PowerCenter Server writes to the target.For more information about post-session SQL, see UsingPre- and Post-Session SQL Commands. 

Sql Query Optional

Defines a custom query that replaces the default query thePowerCenter Server uses to read data from sourcesrepresented in this Source Qualifier. A custom queryoverrides entries for a custom join or a source filter. Formore information, see Overriding the SQL Query.

Source Filter OptionalSpecifies the filter condition the PowerCenter Server applieswhen querying records. For more information, see “SourceQualifier Transformation” in the Transformation Guide.

Table A-10. Mapping Tab - Sources Node - Properties Settings (File Sources)

File SourceOptions

Required/Optional Description

Source FileDirectory

Optional

Enter the directory name in this field. By default, thePowerCenter Server looks in the server variable directory,$PMSourceFileDir, for file sources.

If you specify both the directory and file name in the SourceFilename field, clear this field. The PowerCenter Serverconcatenates this field with the Source Filename field when itruns the session.You can also use the $InputFile Name session parameter tospecify the file directory.For details on session parameters, see Session Parameters.

SourceFilename

Required

Enter the file name, or file name and path. Optionally use the$InputFile Name session parameter for the file name.The PowerCenter Server concatenates this field with theSource File Directory field when it runs the session. For

example, if you have “C:\data\” in the Source File Directoryfield, then enter “filename.dat” in the Source Filename field.When the PowerCenter Server begins the session, it looks for“C:\data\filename.dat”.By default, the Workflow Manager enters the file nameconfigured in the source definition.For details on session parameters, see Session Parameters.

Source

Filetype Required

Allows you to configure multiple file sources using a file list.Indicates whether the source file contains the source data, or alist of files with the same file properties. Choose Direct if thesource file contains the source data. Choose Indirect if thesource file contains a list of files.When you select Indirect, the PowerCenter Server finds the

Page 7 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 8: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 8/22

Setting File Properties for Sources

Configure flat file properties by clicking the Set File Properties link in the Sources node. You candefine properties for both fixed-width and delimited flat file sources.

You can configure flat file properties for non-reusable sessions in the Workflow Designer and forreusable sessions in the Task Developer.

Figure A-11 shows the Flat Files dialog box that appears when you click Set File Properties:

Select the file type (fixed-width or delimited) you want to configure and click Advanced.

Configuring Fixed-Width Properties for Sources

To edit the fixed-width properties, select Fixed Width in the Flat Files dialog box and click theAdvanced button. The Fixed Width Properties dialog box appears.

Note: Edit these settings only if you need to override those configured in the source definition.

Figure A-12 displays the Fixed Width Properties dialog box for flat file sources:

file list then reads each listed file when it executes the session.For details on file lists, see Using a File List.

Set FileProperties

OptionalAllows you to configure the file properties. For moreinformation, see Setting File Properties for Sources.

Datetime

Format* N/A Displays the datetime format for datetime fields.

ThousandSeparator*

N/A Displays the thousand separator for numeric fields.

DecimalSeparator*

N/A Displays the decimal separator for numeric fields.

*You can view the value of this attribute when you click Show all properties. This attribute isread-only. For more information, see the Designer Guide.

Figure A-11. Flat Files Dialog Box for Sources

 

Figure A-12. Fixed Width Properties

Page 8 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 9: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 9/22

Table A-11 describes the options you define in the Fixed Width Properties dialog box for sources:

Table A-11. Fixed-Width Properties for File Sources

Fixed-WidthProperties

OptionsRequired/Optional Description

NullCharacter:Text/Binary

Required

Indicates the character representing a null value in the file.This can be any valid character in the file code page, or anybinary value from 0 to 255. For more information aboutspecifying null characters, see Null Character Handling.

Repeat NullCharacter

Optional

If selected, the PowerCenter Server reads repeat NULLcharacters in a single field as a single NULL value. If youdo not select this option, the PowerCenter Server reads a

single null character at the beginning of a field as a nullfield. Important: For multibyte code pages, Informaticarecommends that you specify a single-byte null character if you are using repeating non-binary null characters. Thisensures that repeating null characters fit into the columnexactly.For more information about specifying null characters, seeNull Character Handling.

Code Page RequiredSelect the code page of the fixed-width file. The defaultsetting is the client code page.

Number of Initial Rows toSkip

Optional

The PowerCenter Server skips the specified number of rows before reading the file. Use this to skip header rows.One row may contain multiple rows. If you select the LineSequential File Format option, the PowerCenter Serverignores this option.You can enter any integer from zero to 2147483647.

Number of Bytes to Skip

BetweenRecords

Optional

The PowerCenter Server skips the specified number of bytes between records. For example, you have an ASCIIfile on Windows with one record on each line, and acarriage return and line feed appear at the end of each line.If you want the PowerCenter Server to skip these twosingle-byte characters, enter 2.If you have an ASCII file on UNIX with one record for

Page 9 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 10: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 10/22

Configuring Delimited File Properties for Sources

To edit the delimited properties, select Delimited in the Flat Files dialog box and click the Advancedbutton. The Delimited File Properties dialog box appears.

Note: Edit these settings only if you need to override those configured in the source definition.

Figure A-13 displays the Delimited File Properties dialog box for flat file sources:

Table A-12 describes the options you can define in the Delimited File Properties dialog box for flatfile sources:

each line, ending in a carriage return, skip the singlecharacter by entering 1.

Strip TrailingBlanks

OptionalIf selected, the PowerCenter Server strips trailing blank spaces from records before passing them to the SourceQualifier transformation.

LineSequential FileFormat

OptionalSelect this option if the file uses a carriage return at the endof each record, shortening the final column.

Figure A-13. Delimited Properties for File Sources

 

Table A-12. Delimited Properties for File Sources

DelimitedFile

PropertiesOptions

Required/Optional Description

Delimiters Required

Character used to separate columns of data in the sourcefile. Use the Browse button to the right of this field to entera different delimiter. Delimiters can be either printable orsingle-byte unprintable characters, and must be differentfrom the escape character and the quote character (if selected). You cannot select unprintable multibyte

Page 10 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 11: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 11/22

characters as delimiters. The delimiter must be in the samecode page as the flat file code page.

OptionalQuotes

Required

Select None, Single, or Double. If you select a quotecharacter, the PowerCenter Server ignores delimitercharacters within the quote characters. Therefore, thePowerCenter Server uses quote characters to escape thedelimiter.For example, a source file uses a comma as a delimiter andcontains the following row: 342-3849, 'Smith,

Jenna', 'Rockville, MD', 6.

If you select the optional single quote character, thePowerCenter Server ignores the commas within the quotesand reads the row as four fields.If you do not select the optional single quote, thePowerCenter Server reads six separate fields.When the PowerCenter Server reads two optional quotecharacters within a quoted string, it treats them as one quotecharacter. For example, the PowerCenter Server reads thefollowing quoted string as I'm going tomorrow: 

2353, 'I''m going tomorrow.', MDAdditionally, if you select an optional quote character, thePowerCenter Server only reads a string as a quoted string if the quote character is the first character of the field.Note: You can improve session performance if the sourcefile does not contain quotes or escape characters.

Code Page RequiredSelect the code page of the delimited file. The defaultsetting is the client code page.

EscapeCharacter

Optional

Character immediately preceding a delimiter characterembedded in an unquoted string, or immediately precedingthe quote character in a quoted string. When you specify anescape character, the PowerCenter Server reads thedelimiter character as a regular character (called escapingthe delimiter or quote character).Note: You can improve session performance for mappingscontaining Sequence Generator transformations if thesource file does not contain quotes or escape characters.

Remove

EscapeCharacterFrom Data

Optional This option is selected by default. Clear this option toinclude the escape character in the output string.

TreatConsecutiveDelimiters asOne

Optional

By default, the PowerCenter Server reads pairs of delimiters as a null value. If selected, the PowerCenterServer reads any number of consecutive delimitercharacters as one.For example, a source file uses a comma as the delimitercharacter and contains the following record: 56, , , JaneDoe. By default, the PowerCenter Server reads that recordas four columns separated by three delimiters: 56, NULL,NULL, Jane Doe. If you select this option, the PowerCenterServer reads the record as two columns separated by one

Page 11 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 12: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 12/22

Targets Node

The Targets node lists the used in the session and displays their settings. If you want to view andconfigure the settings of a specific target, select the target from the list.

You can configure the following settings:

Writers. The Writers settings displays the writer the PowerCenter Server uses with each targetinstance. For more information, see Writers Settings.

Connections. The Connections settings allows you to configure connections for the targets.For more information, see Connections Settings.

Properties. The Properties settings allows you to configure the target properties. For moreinformation, see Properties Settings.

Writers Settings

You can view and configure the writer the PowerCenter Server uses with each target instance. TheWorkflow Manager specifies the necessary writer for each target instance. For relational targets thewriter is Relational Writer and for file targets it is File Writer.

Figure A-14 displays the Writers settings on the Mapping tab (Targets node):

Table A-13 describes the Writers settings on the Mapping tab (Targets node):

delimiter: 56, Jane Doe.

Number of Initial Rows toSkip

OptionalThe PowerCenter Server skips the specified number of rowsbefore reading the file. Use this to skip title or header rowsin the file.

Figure A-14. Mapping Tab - Targets Node - Writers Settings

Page 12 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 13: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 13/22

Connections Settings

You can enter connection types and specific target database connections on the Targets node of theMappings tab.

Figure A-15 displays the Connections settings on the Mapping tab (Targets node):

Table A-14 describes the Connections settings on the Mapping tab (Targets node):

Table A-13. Mapping Tab - Targets Node - Writers Settings

WritersSetting

Required/Optional Description

Writers Required

For relational targets, choose Relational Writer or File Writer.When the target in the mapping is a flat file, an XML file, a SAP

BW target, or MQ target, the Workflow Manager specifies thenecessary writer in the session properties.When you choose File Writer for a relational target you can usean external loader to load data to this target. For moreinformation, see External Loading.When you override a relational target to use the file writer, theWorkflow Manager changes the properties for that targetinstance on the Properties settings. It also changes theconnection options you can define on the Connections settings.After you override a relational target to use a file writer, definethe file properties for the target. Click Set File Properties and

choose the target to define. For more information, seeConfiguring Fixed-Width Properties and Configuring DelimitedProperties.

Figure A-15. Mapping Tab - Targets Node - Connections Settings

Page 13 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 14: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 14/22

Properties Settings

Table A-14. Mapping Tab - Targets Node - Connections Settings

ConnectionsSettings

Required/Optional Description

Type Required

Enter the connection type for non-relational targets.Specifies Relational for relational targets.

You can choose the following connection types for flat file,XML, and MQ targets:

FTP. Select this connection type to use FTP to accessthe target directory for flat file and XML targets. If you want to load data to a flat file or XML target usingFTP, you must specify an FTP connection when youconfigure target options. If you select this option,select a configured FTP connection in the Valuecolumn. FTP connections must be defined in theWorkflow Manager prior to configuring sessions. For

details on using FTP, see Using FTP. External Loader. Select this connection type to use

the External Loader to load output files to Teradata,Oracle, DB2, or Sybase IQ databases. If you select thisoption, select a configured loader connection in theValue column.To use this option, you must use a mapping with arelational target definition and choose File as thewriter type on the Writers tab for the relational targetinstance. As the PowerCenter Server completes thesession, it uses an external loader to load target files to

the Oracle, Sybase IQ, DB2, or Teradata database.You cannot choose external loader for flat file orXML target definitions in the mapping.Note to Oracle 8 users: If you configure a session towrite to an Oracle 8 external loader target table in bulk mode with NOT NULL constraints on any columns,the session may write the null character into a NOTNULL column if the mapping generates a NULLoutput.For details on using the external loader feature, seeExternal Loading.

Queue. Choose Queue when you want to output to anMQSeries message queue. If you select this option,select a configured MQ connection in the Valuecolumn. For more information, see the PowerCenterConnect for IBM MQSeries User and Administrator Guide.

None. Choose None when you want to write to a localflat file or XML file.

Partitions N/A Displays the partitions if the session is partitioned.

Value RequiredEnter a target connection based on the value you choose in

the Type column.

Page 14 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 15: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 15/22

Click the Properties settings to define target property information. The Workflow Manager displaysdifferent properties for the different target types: relational, flat file, and XML.

Properties Settings for Relational Targets

You can configure the writer and object instance attributes for a relational target.

Figure A-16 displays the Properties settings on the Mapping tab for relational targets:

Table A-15 describes the Properties settings on the Mapping tab for relational targets:

Figure A-16. Mapping Tab - Targets Node - Properties Settings (Relational)

 

Table A-15. Mapping Tab - Targets Node - Properties Settings (Relational)

Target Property Required/Optional Description

You can choose Normal or Bulk.If you select Normal, the PowerCenter Server

loads targets normally.You can only choose Bulk when you load toSybase, Oracle, or Microsoft SQL Server. If youselect Bulk for a Sybase, Oracle, or MicrosoftSQL Server target, Informatica invokes the bulk API with default settings, bypassing databaselogging.If you select Bulk for other database types, thePowerCenter Server reverts to a normal load.Loading in bulk mode can improve sessionperformance, but limits your ability to recoverbecause no database logging occurs.Note: Choose Normal mode if the mappingcontains an Update Strategy transformation.Tip: When you choose Bulk mode for Microsoft

Page 15 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 16: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 16/22

Target Load Type Required

SQL Server or Oracle targets, define a largecommit interval.Consider the following database limitations whenyou choose Bulk mode when loading to Oracle:

Do not define CHECK constraints in the

database. Do not define primary-foreign keys in the

database. However, you can define primary-foreign keys for the target definitions in theDesigner.

Do not create indexes in the database. When you use the LONG datatype, verify it

is the last column in the table.

For more information, see your Oracledocumentation.

Insert Optional

If selected, the PowerCenter Server inserts allrows flagged for insert.By default, this option is selected.For details on target update strategies, see “UpdateStrategy Transformation” in the TransformationGuide.

Update (as Update) Optional

If selected, the PowerCenter Server updates allrows flagged for update.By default, this option is selected.For details on target update strategies, see “Update

Strategy Transformation” in the TransformationGuide.

Update (as Insert) Optional

If selected, the PowerCenter Server inserts allrows flagged for update.By default, this option is not selected.For details on target update strategies, see “UpdateStrategy Transformation” in the TransformationGuide.

Update (else Insert) Optional

If selected, the PowerCenter Server updates rowsflagged for update if it they exist in the target, then

inserts any remaining rows marked for insert.For details on target update strategies, see “UpdateStrategy Transformation” in the TransformationGuide.

Delete Optional

If selected, the PowerCenter Server deletes allrows flagged for delete.For details on target update strategies, see “UpdateStrategy Transformation” in the TransformationGuide.

Truncate Table OptionalIf selected, the PowerCenter Server truncates thetarget before loading. For details on this feature,see Truncating Target Tables.

Page 16 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 17: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 17/22

Properties Settings for Flat File Targets

Figure A-17 describes the Properties settings on the Mapping tab for file targets:

Reject File Directory Optional

Enter the directory name in this field. By default,the PowerCenter Server writes all reject files to theserver variable directory, $PMBadFileDir.If you specify both the directory and file name inthe Reject Filename field, clear this field. ThePowerCenter Server concatenates this field with

the Reject Filename field when it runs the session.You can also use the $BadFile Name sessionparameter to specify the file directory.For details on session parameters, see SessionParameters.

Reject Filename Required

Enter the file name, or file name and path. Bydefault, the PowerCenter Server names the rejectfile after the target instance name:target_name.bad. Optionally use the$BadFile Name session parameter for the filename.The PowerCenter Server concatenates this fieldwith the Reject File Directory field when it runsthe session. For example, if you have“C:\reject_file\” in the Reject File Directory field,and enter “filename.bad” in the Reject Filenamefield, the PowerCenter Server writes rejected rowsto C:\reject_file\filename.bad.For details on session parameters, see SessionParameters.

Rejected

Truncated/Overflowedrows*

OptionalInstructs the PowerCenter Server to write thetruncated and overflowed rows to the reject file.

Update Override* Optional Override the default UPDATE statement.

Table Name Prefix Optional Specify the owner of the target tables.

Pre SQL Optional

You can enter pre-session SQL commands for atarget instance in a mapping to execute commandsagainst the target database before the PowerCenterServer reads the source.

Post SQL OptionalEnter post-session SQL commands to executecommands against the target database after thePowerCenter Server writes to the target.

*You can view the value of this attribute when you click Show all properties. This attribute isread-only. For more information, see the Designer Guide. 

Figure A-17. Mapping Tab - Targets Node - File Properties Settings

Page 17 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 18: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 18/22

Table A-16 describes the Properties settings on the Mapping tab for file targets:

Table A-16. Mapping Tab - Targets Node - File Properties Settings

TargetProperty

Required/Optional Description

MergePartitionedFiles

Optional

When selected, the PowerCenter Server merges the partitionedtarget files into one file when the session completes, and thendeletes the individual output files. If the PowerCenter Serverfails to create the merged file, it does not delete the individualoutput files.You cannot merge files if the session uses FTP, an externalloader, or a message queue.For details on configuring a session for partitioning, seePipeline Partitioning.

Merge FileDirectory

Optional

Enter the directory name in this field. By default, thePowerCenter Server writes the merged file in the servervariable directory, $PMTargetFileDir.

If you enter a full directory and file name in the Merge FileName field, clear this field.

Merge FileName

OptionalName of the merge file. Default is target_name.out. Thisproperty is required if you select Merge Partitioned Files.

Output FileDirectory

Optional

Enter the directory name in this field. By default, thePowerCenter Server writes output files in the server variabledirectory, $PMTargetFileDir.If you specify both the directory and file name in the OutputFilename field, clear this field. The PowerCenter Serverconcatenates this field with the Output Filename field when itruns the session.You can also use the $OutputFile Name session parameter tospecify the file directory.

Page 18 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 19: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 19/22

For details on session parameters, see Session Parameters.

OutputFilename

Required

Enter the file name, or file name and path. By default, theWorkflow Manager names the target file based on the targetdefinition used in the mapping: target_name.out.If the target definition contains a slash character, theWorkflow Manager replaces the slash character with anunderscore.When you use an external loader to load to an Oracledatabase, you must specify a file extension. If you do notspecify a file extension, the Oracle loader cannot find the flatfile and the PowerCenter Server fails the session. For moreinformation about external loading, see Loading to Oracle.Enter the file name, or file name and path. Optionally use the$OutputFile Name session parameter for the file name.The PowerCenter Server concatenates this field with theOutput File Directory field when it runs the session.For details on session parameters, see Session Parameters.

Note: If you specify an absolute path file name when usingFTP, the PowerCenter Server ignores the Default RemoteDirectory specified in the FTP connection. When you specifyan absolute path file name, do not use single or double quotes.

Reject FileDirectory

Optional

Enter the directory name in this field. By default, thePowerCenter Server writes all reject files to the servervariable directory, $PMBadFileDir.If you specify both the directory and file name in the RejectFilename field, clear this field. The PowerCenter Serverconcatenates this field with the Reject Filename field when it

runs the session.You can also use the $BadFile Name session parameter tospecify the file directory.For details on session parameters, see Session Parameters.

RejectFilename

Required

Enter the file name, or file name and path. By default, thePowerCenter Server names the reject file after the targetinstance name: target_name.bad. Optionally use the$BadFile Name session parameter for the file name.The PowerCenter Server concatenates this field with theReject File Directory field when it runs the session. Forexample, if you have “C:\reject_file\” in the Reject FileDirectory field, and enter “filename.bad” in the RejectFilename field, the PowerCenter Server writes rejected rowsto C:\reject_file\filename.bad.For details on session parameters, see Session Parameters.

Set FileProperties

OptionalAllows you to configure the file properties. For moreinformation, see Setting File Properties for Targets.

DatetimeFormat*

N/A Displays the datetime format selected for datetime fields.

Thousand

Separator* N/A Displays the thousand separator for numeric fields.

Decimal N/A Displays the decimal separator for numeric fields.

Page 19 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 20: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 20/22

Setting File Properties for Targets

Click the Set File Properties button on the Mapping tab to configure flat file properties. You candefine flat file properties for both fixed-width and delimited flat file targets.

You can configure flat file properties for non-reusable sessions in the Workflow Designer and forreusable sessions in the Task Developer.

Figure A-18 shows the Flat Files dialog box that appears when you click Set File Properties:

Select the file type (fixed-width or delimited) you want to configure and click Advanced.

Configuring Fixed-Width Properties for Targets

To edit the fixed-width properties, select Fixed Width in the Flat Files dialog box and click theAdvanced button. The Fixed Width Properties dialog box appears.

Figure A-19 displays the Fixed-Width Properties dialog box for flat file targets:

Table A-17 describes the options you define in the Fixed Width Properties dialog box:

Separator*

*You can view the value of this attribute when you click Show all properties. This attribute isread-only. For more information, see the Designer Guide.

Figure A-18. Flat Files Dialog Box for Targets

 

Figure A-19. Fixed-Width Properties for File Targets

 

Table A-17. Fixed-Width Properties for File Targets

Fixed-WidthProperties

Required/Optional Description

Page 20 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 21: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 21/22

Configuring Delimited Properties for Targets

To edit the delimited properties, select Delimited in the Flat Files dialog box and click the Advancedbutton. The Delimited File Properties dialog box appears.

Figure A-20 displays the Delimited File Properties dialog box for flat file targets:

Table A-18 describes the options you can define in the Delimited File Properties dialog box for flatfile targets:

Options

NullCharacter

Required

Enter the character you want the PowerCenter Server to useto represent null values. You can enter any valid character inthe file code page.For more information about specifying null characters fortarget files, see Null Characters in Fixed-Width Files.

Repeat NullCharacter

Optional

Select this option to indicate a null value by repeating thenull character to fill the field. If you do not select thisoption, the PowerCenter Server enters a single null characterat the beginning of the field to represent a null value. Formore information about specifying null characters for targetfiles, see Null Characters in Fixed-Width Files.

Code Page RequiredSelect the code page of the fixed-width file. The defaultsetting is the client code page.

Figure A-20. Delimited Properties for File Targets

 

Table A-18. Delimited Properties for File Targets

EditDelimiterOptions

Required/Optional Description

Delimiters Required

Character used to separate columns of data. Use the Browsebutton to the right of this field to enter a non-printabledelimiter. Delimiters can be either printable or single-byteunprintable characters, and must be different from the escapecharacter and the quote character (if selected). You cannotselect unprintable multibyte characters as delimiters.

Select No Quotes, Single Quote, or Double Quotes. If youselect a quote character, the PowerCenter Server does not treat

Page 21 sur 22Mapping Tab (Transformations View)

02/02/2010ms-its:C:\Program%20Files\Informatica%20PowerCenter%207.1.3\Client\WAG.chm...

Page 22: a Mapping Help

8/7/2019 a Mapping Help

http://slidepdf.com/reader/full/a-mapping-help 22/22

Transformations Node

On the Transformations node, you can override properties that you configure in transformation andtarget instances in a mapping. The attributes you can configure depends on the type of 

transformation you select.

Figure A-21 displays the Transformations node on the Mapping tab:

OptionalQuotes

Required

delimiter characters within the quote characters as a delimiter.For example, suppose an output file uses a comma as adelimiter and the PowerCenter Server receives the followingrow: 342-3849, 'Smith, Jenna', 'Rockville, MD', 6.If you select the optional single quote character, thePowerCenter Server ignores the commas within the quotes

and writes the row as four fields.If you do not select the optional single quote, the PowerCenterServer writes six separate fields.

Code Page RequiredSelect the code page of the delimited file. The default settingis the client code page.

Figure A-21. Mapping Tab - Transformations Node

Informatica Corporationhttp://www.informatica.com

Voice: (650) 385-5000Fax: (650) 385-5500

Page 22 sur 22Mapping Tab (Transformations View)


Recommended