Page 1 of 1
very simple:null represented as double quoted empty string
Posted: Tue Mar 02, 2004 7:27 am
by ariear
Hi,
I need to read a sequential file in it simple format i.e. comma delimited, double qouted format. Nulls are represented as double quoted empty strings i.e. "".
Thanks for your help !
very simple:null represented as double quoted empty string
Posted: Wed Mar 10, 2004 5:48 pm
by bigpoppa
What is the problem you are having? Does PX not recognize the "" as a NULL?
Posted: Thu Mar 11, 2004 4:17 pm
by ariear
I'm trying to read a simple sequential file (comma delimited & double quoted). A null will be represented in this file as "". i.e.
"a","b","","c","d"
It seems that px cannot deal with a nullable field that has no real replacement char or I don't know how to deal with px.
ArieAR
Posted: Fri Mar 12, 2004 11:14 am
by jreddy
did u specify the QUOTE property on the sequential file stage as 'double'. This tells it that the column will have leading and trailing double quotes.
Try this, write a simple test job with source sequential stage to read this input, and define the quote property as double. Use a transformer to directly map these columns to another sequential file stage. But on the target sequential stage, set the QUOTE property to 'none'. When u run the job, if u see the contents of the target file, u will see that it set that column with "" as null.
for example, if your source was reading a record
"a","b","","c","d"
the output file would have had this as
a,b,,c,d
hope this helps