Handling Data in Sequentail 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
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Handling Data in Sequentail file

Post by srai »

Hi All,

We facing one data related issues while loading data from Sequential file to Database.

Jobs design is like

Seq File------------>Target db(Oracle)

We are geting records like

1) "364237",5/31/2010 0:00:00,"PERIMETER CENTER LOFTS LLC","00001316","CRE"

Above mentioned is correct record and working fine.

2) "373466",5/31/2010 0:00:00,"PLAZA 111

(CARDINAL REAL ESTATE INVESTMENTS)","00000941","CRE"

this one is not proper record because there is one additional line in cloumn three and due to which job fails. We want to reject that record and make the job work.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Scroll right in the Columns grid and you will find a property called something like "field contains terminators". Set this to true and your problem will vanish, provided that string fields are all correctly quoted.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

However, it will then read the record, not reject it. You then have to decide what to do (if anything) with the CR/LF in the data.
-craig

"You can never have too many knives" -- Logan Nine Fingers
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Post by laknar »

Read entire row as single column.
Have a transformer between Sequential File and Database Stage.
Check the number of fields in Transformer Stage Variable. If it is less then what you are expecting then reject by using constraint.
Regards
LakNar
Post Reply