Problem with txt file

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
lsnovick
Participant
Posts: 80
Joined: Fri May 25, 2007 7:24 am
Location: Troy

Problem with txt file

Post by lsnovick »

I am trying to read a txt file that I put on a UNIX box. It looks like the following:

VIN|SoldDate|BuildDate|IntvDate|ProblemCode|Service|Delivery|Trans|Engine|ProblemCode|SMT|Overall|BirthYear|Mcell|Qcell|Verbatim

I have these settings:
Final delimiter = end
Record = UNIX
Record Delimiter = |
Quote = none

It stops at the second column (SoldDate)

Is there a setting I am missing?
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

'|' is your field delimiter and not record delimiter.
Arun
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Is your file coming with null value?
What is the datatype you have given for Date,read it as varchar and transform to date in Transformer.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Problem with txt file

Post by SURA »

lsnovick wrote:It stops at the second column (SoldDate)
Change the Data type as VC and handle it in the next TFM would allow you...
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

... or just fix the field and record delimiters. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
v_bhaskar
Participant
Posts: 33
Joined: Wed Apr 18, 2012 4:45 am

Post by v_bhaskar »

are running this job with RCP or normal
vijay
INDIA
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

'|' is the field delimiter not the record delimiter.Remove the record delimiter property and add field delimiter ='|'
N.Srinivas
India.
Post Reply