Error reading files using File Pattern

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
chandu123
Premium Member
Premium Member
Posts: 40
Joined: Mon Sep 12, 2016 1:26 pm

Error reading files using File Pattern

Post by chandu123 »

I am reading multiple csv files using Sequential File Stage with File Pattern option. But while reading Datastage is concatenating last record of first file and first record of second file. I think that is because there is no new line character after the last record of first file. How can we address this in Datastage?

Should I set any option in sequential file stage to treat them as separate records?

EX:
F1:
abc
def

F2
xyz
mno

Current Output:
abc
defxyz
mno

Expected:
abc
def
xyz
mno
Last edited by chandu123 on Mon Nov 07, 2016 3:37 pm, edited 1 time in total.
HB
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Can you verify the job type, please? I don't recall Server jobs having a "File Pattern" option in that stage but could be wrong.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chandu123
Premium Member
Premium Member
Posts: 40
Joined: Mon Sep 12, 2016 1:26 pm

Post by chandu123 »

Sorry.. updated the job type to 'Parellel'.
HB
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... and then moved to the proper forum.
-craig

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