Reading .csv file.

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
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Reading .csv file.

Post by sagar deshmukh »

Code: Select all

I am FTPing .csv file from remote server and then concatiating it to a "R.csv" file, but when i am trying to read that "R.csv" file by using sequential stage data stage is reading just 1st row and its giving warning as "nls_read_delimited" row -1, too many column in a record"

but my data is fine can you please tell me the solution>?

R.csv---->

'99999','BB1','12/17/2008','10:01:04','000015451900110042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900210042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900310042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900410042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900510042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900610042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900710042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900810042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451900910042500000','0.15','1'
'99999','BB1','12/17/2008','10:01:04','000015451901010042500000','0.15','1'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Your metadata defined in the Sequential stage does not match the actual file's data. Details please - how many columns did you define? What column delimiter? Etc.
-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 »

How many columns are mentioned in the Sequential File stage in your job design?

When you say "concatenate" to R.csv, is the already existing structure of R.csv compatible with the added rows?
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