Page 1 of 2

reading a delimited file

Posted: Fri Mar 09, 2007 8:16 am
by ady
Hi ,

I Have a seq file seperated by the column delimiter "|"

abc|123|xyz|000|

When I read the file in parallel, i am missing data in 2 of the columns,

like

abc|3|z|000|

Why does it show like that , I have the metadata for all the columns ? .... i am just missing data in 2 columns.

Can anyone help me with this please...

Posted: Fri Mar 09, 2007 8:19 am
by ray.wurlod
Do you have the Field Width property set on these truncated columns? What data type have you assigned to them?

Posted: Fri Mar 09, 2007 8:24 am
by DSguru2B
You sure they are missing or you dont have the 'Display' equal or more than the Length :?:

Posted: Fri Mar 09, 2007 8:24 am
by kumar_s
When I read the file in parallel
Are you referring this to multiple readers per node? If so its not recommended for variable length delimited file. Its for fixed width files.

Posted: Fri Mar 09, 2007 8:45 am
by ady
The text file is been generated from a sql script .... The type is varchar from the source. It not a fixed width file.

but when I change the datatype to decimal .... I am able to view the data.

The "display" property is not present in the metadata, Cant figure out where I can add that

Posted: Fri Mar 09, 2007 8:49 am
by kumar_s
Display is for Server jobs to control the length of the field while suing view data. As I asked you earliar, could you let me know whether its Multiple reader per node.

Posted: Fri Mar 09, 2007 8:51 am
by kumar_s
Or probably the Display option mentioned was in the column select option available in PX.

Posted: Fri Mar 09, 2007 8:52 am
by DSguru2B
Never mind the display property if you are able to view the complete data when you change datatypes. Display is next to the length in the column's tab. As the name suggest, it limits how much data you can view. But if you drag the column end, you can extend it.
But as I said, that does'nt seem to be your issue.

Posted: Fri Mar 09, 2007 9:02 am
by ady
@Kumar_s

I have no idea about "Multiple reader per node" , how can i find out ?

Posted: Fri Mar 09, 2007 9:07 am
by kumar_s
May I know, what you mean by "When I read the file in parallel"?
And let know that, where are you looking for all these data?
Through view data or in server?

Posted: Fri Mar 09, 2007 10:01 am
by ady
View data , ....

Posted: Fri Mar 09, 2007 10:05 am
by kumar_s
Try to write into a file and check it. "Multiple reader per node" is an opition available in PX sequential file to read a single file parallely to improve the performance.

Posted: Fri Mar 09, 2007 10:33 am
by ray.wurlod
kumar_s wrote:
When I read the file in parallel
Are you referring this to multiple readers per node? If so its not recommended for variable length delimited file. Its for fixed width files.
I think that all that was meant was "in a parallel job".

Posted: Fri Mar 09, 2007 10:36 am
by kumar_s
ray.wurlod wrote:I think that all that was meant was "in a parallel job".
Oh... simply may be that.

Posted: Fri Mar 09, 2007 2:14 pm
by ady
Yes it is a parallel job , .....

I am going to pass the values as decimal and then later in the job convert to char, ....