How to read Sequential file with columns contain new line

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

Post Reply
xinhuang66
Participant
Posts: 161
Joined: Wed Aug 02, 2006 4:30 am

How to read Sequential file with columns contain new line

Post by xinhuang66 »

How can I read a sequential file with columns contain new line characters ?

The file use another special character as field delimiter and record delimiter. And each time, DS read the column with "New line characters", it will stop reading characters after "new line characters".
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What are these other 'special characters' for the field and record delimiters in the file? Have you configured the stage to use them?
-craig

"You can never have too many knives" -- Logan Nine Fingers
xinhuang66
Participant
Posts: 161
Joined: Wed Aug 02, 2006 4:30 am

Post by xinhuang66 »

Yes, I configured field and record delimiter to use it.

field Delimiter string = \xDC\x20
Record Delimter String = \xD1\x20\x0A

The frustrating thing is each time if the column contains \x0A, it will not continue to read characters after \x0A.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's an option in Server to tell DataStage that a column 'Contains Terminators' and thus treat them as data rather than record delimiters. I would think a similar option would exist in PX... somewhere. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
xinhuang66
Participant
Posts: 161
Joined: Wed Aug 02, 2006 4:30 am

Post by xinhuang66 »

Thanks, I guess so.

But I just couldn't find it.
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Post by sachin1 »

column terminator can be found in column tabs in sequential file.
Post Reply