Sequential file Read

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
edison
Participant
Posts: 19
Joined: Mon Sep 17, 2007 4:28 pm

Sequential file Read

Post by edison »

Input

0001
0002
0003
0001,0002
0005
0003,0004

Source is sequential file and Pipe delimiter, how can we read source data if it like 0001,0002 in 1 line.

When i read source file it is unable to read after comma.It is reading all 6 lines data but not after comma data.
Nokia8800
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... when you say "in one line" you actually mean "in one column", yes? And are you certain you set the delimiter to a pipe in the stage? I'd also be curious what the data type of this column is...
-craig

"You can never have too many knives" -- Logan Nine Fingers
edison
Participant
Posts: 19
Joined: Mon Sep 17, 2007 4:28 pm

Post by edison »

Datatype is Varchar(10), yes i mean one column.
Nokia8800
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And the pipe delimiter? I'm not sure off the top of my head why you'd be seeing the behaviour you are describing unless the delimiter was set to a comma in the stage. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
edison
Participant
Posts: 19
Joined: Mon Sep 17, 2007 4:28 pm

Post by edison »

Thanks Craig, you are right i set delimiter to comma instead of pipe.
Nokia8800
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So, resolved?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply