Sequential File --> All Records are coming in a single re

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
Naren12345babu
Premium Member
Premium Member
Posts: 76
Joined: Wed Jan 06, 2016 9:40 am
Location: Bangalore

Sequential File --> All Records are coming in a single re

Post by Naren12345babu »

Hi,

I have my source as

AD
TPR
DISPLAY

When I am writing this to sequential File, I am getting output as

AD TPR DISPLAY

The Sequential File Format settings are Final Delimiter = WhiteSpace

I need output as below

AD
TPR
DISPLAY

How can I do this. I am not able to get records one below other.
Thanks
Naren Babu Ch
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

These examples are meant to show us three records in the source and target? If so, the final delimiter in the sequential file has no bearing on that aspect of your example, that is controlled by the Record delimiter which is by default to a UNIX Newline from what I recall. What is yours set to? And where exactly are you seeing this output? If you move the file over to Windows first to view it then you could very well see it as a "single record" there because Windows uses a different record delimiter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Naren12345babu
Premium Member
Premium Member
Posts: 76
Joined: Wed Jan 06, 2016 9:40 am
Location: Bangalore

Post by Naren12345babu »

I am Seeing this output in Windows.
Thanks
Naren Babu Ch
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

With no other answers or details forthcoming, all I can say is "hence the problem". Check it on the UNIX server. Where will this file be consumed, UNIX or Windows? That will drive the settings you should use.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Eliminate your Final Delimiter property and set the Record Delimiter String property (which is different from the Record Delimiter property) to "DOS style". Let us know whether that works.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply