reading a delimited file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

reading a delimited file

Post 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...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you have the Field Width property set on these truncated columns? What data type have you assigned to them?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You sure they are missing or you dont have the 'Display' equal or more than the Length :?:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post 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
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Or probably the Display option mentioned was in the column select option available in PX.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

@Kumar_s

I have no idea about "Multiple reader per node" , how can i find out ?
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

View data , ....
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ray.wurlod wrote:I think that all that was meant was "in a parallel job".
Oh... simply may be that.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post 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, ....
Post Reply