When you import a flat file in the Designer, the Flat File Wizard uses the filename as the name of the flat file definition by default. You can import a flat filewith any valid file name through the Flat File Wizard. However, the Designer does not recognize some special characters in flat file source and target names.When you import a flat file, the Flat File Wizard changes invalid characters andspaces into underscores ( _ ). For example, you have the source file “sampleprices+items.dat”. When you import this flat file in the Designer, the Flat FileWizard names the file definition sample_prices_items by default.Related Topics:Special Character HandlingSpecial Character Handling
Selecting Code Pages
When you import a flat file in the Designer, you can select the code page of thefile. The Designer lists the five code pages you have most recently selected.Then it lists all remaining code pages in alphabetical order.The code page represents the code page of the
contained in the file. Whenyou configure the file definition, specify delimiters, null characters, and escapecharacters that are supported by the code page.For delimited files, specify delimiters, optional quotes, and escape charactersthat are contained in the source file code page. For fixed-width files, specify nullcharacters as either a binary value from 0 to 255 or a character from the selectedcode page.When you configure the flat file definition, use delimiters, escape characters, andnull characters that are valid in the code page necessary to run a workflow.
ASCII data movement mode.
Use characters from the code page you definefor the flat file. Any 8-bit characters you specified in previous versions of PowerCenter are still valid.
Unicode data movement mode.
Use characters from the code page youdefine for the flat file.
Changing Display Fonts
You can use the Flat File Wizard to preview the data contained in a flat file. Bydefault, the Flat File Wizard displays fonts based on the system locale. For example, the PowerCenter Client is installed on a Windows machine that usesthe default Latin-1 system locale. By default, the font in the Flat File Wizard is setto Courier. The preview window displays Latin-1 characters in the Courier font.To display a font that is not compatible with the Latin-1 locale, you must changethe font for the Flat File Wizard. For example, if you want to see Japanese fontsin the preview window of the Flat File Wizard on the Latin-1 machine, you mustchange the font to a Japanese font, such as MS Gothic.You can configure the font for the Flat File Wizard in the Designer.