Unable to view all records from sequential 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

ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do the terminal $ characters have any function, such as "continuation character"? Does your metadata take these into account?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

actually $ character came only when i did cat -vte <filename>. When i am opening the file with vi or cat o head, am unable to see it. Also, one more thing is the last column data is truncated... even if i give varchar(100) even though the column is having only 30 characters max, i am unable to see the data.
Mac4rfree
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

Ray, i made some progress. I copied the contents (only) from windows and created the file in Unix itself. I also changed Record delimiter as UNIX Newline and Field delimiter as none. Now i am able to process 988 records and rest are going as rejected. I have captured them and this is how it appears.

Code: Select all

{20 2 0 1 1 - 0 5 - 0 3 H H R 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 R E T A I L 20 U S 20 20 20 20 20 20 20 20 20 7 C H E V R O L E T 20 T R U C K S 20 20 20 20 20 20 20 20 20 20 V A N / M P V}
Mac4rfree
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

use the unix "od" command to perform complete diagnosis of the file, i guess it will give you a better insight of where the file records are getting messed up
- Zulfi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That looks like reasonable data, though maybe the final field is truncated as you say. Can you please provide the record schema that describes the record structure, and one more example of a failed row?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Just to clear things up a bit, there should not be any actual $ sign at the end of each line in your file. The -vte options on the cat command are to force the display of some nonprinting characters as visible characters, like a $ for the end of each line and ^I for tabs, etc. It's similar in purpose to opening the file in vi or using the od -x commands on the file.

How is your metadata defined, as several have asked. What is in your Columns tab? Is it a single column of type VarChar(1000) or what?

What are all the options you have set now on the Format tab?

Are you getting any error now or still getting some records rejected?
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply