0
votes

I am working on a flat file source. The column names in the source are in form of big questions so they include commas and other special characters as well in column names. Since it is .csv file so the columns are separated by commas for first few column names and for remaining column names which are in form of questions are placed in between double quotes and separated by each other by commas. Now my doubt is while setting the file properties in PowerCenter Designer.

How do i define the column delimiters and as well as the row delimiters so as to read data by skipping the column names?

This is how my file looks:

Number,X,Y,Z,P,Q,R,S,"(A) 1. When you need to look for information about your different mall options, what level of importance do you place on the following information sources? (1- Not at all Important / 10 - Very Important)  Website","(A) 1. When you need to look for information about your different mall options, what level of importance do you place on the following information sources? (1- Not at all Important / 10 - Very Important)Website"
1,1,,1,1,1,1,1,1,1
1
Which are your column names? What row delimeter do you have in the flat file? - Samik
These are all column names :- c1-Number, c2-X, c3-Y, c4-Z, c5-P, c6-Q, c7-R, c8-S, c9 -"(A) 1. When you need to look for information about your different mall options, what level of importance do you place on the following information sources? (1- Not at all Important / 10 - Very Important) Website", c10-"(A) 1. When you need to look for information about your different mall options, what level of importance do you place on the following information sources? (1- Not at all Important / 10 - Very Important)Website" The record starts from 1,1,,1,1,1,1,1,1,1. From col 9 onwards all are question - mpasoria
and row delimeter is Space? - Samik

1 Answers

1
votes

In advanced properties, set column delimeters as ",", Optional Quotes as "Double", and Number of initial rows to skip as "1".

Also, you have to change the row delimeter if it is other than newline.