Sequential File dropping records without any warning

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
DataQuality_IS8.1
Premium Member
Premium Member
Posts: 17
Joined: Wed Jun 24, 2009 11:18 am

Sequential File dropping records without any warning

Post by DataQuality_IS8.1 »

Hi All,
Please find my job design

Oracle Enterprise Stage---> Transformer--->Sequential file Stage

Oracle stage is fetching 115 records from database & storing them in sequential file( delimited by "|"). The fetched data does not contain special character "|". The job performance statistics/job log show that 115 records have fetched from DB & loaded to Sequential file. But when I used "View Data" it is showing only 37 records. It seems that sequential stage is dropping these 78 records.

In subsequent job where this input file is used , it is only processing 37 records.

Also note that I am using "NULL" as null handler for sequential file stage.

I am not sure why these 78 records have dropped/rejected without any warning in log file.

Your help is appreciated.

Thanks,
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Check the job log in your director for any drop messages.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Metadata issues will cause the stage to 'drop' records. How many records does the actual UNIX file have? Check outside of DataStage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DataQuality_IS8.1
Premium Member
Premium Member
Posts: 17
Joined: Wed Jun 24, 2009 11:18 am

Post by DataQuality_IS8.1 »

Hi All,

I looked the log file & found that there is no message showing that record have dropped.

But when I viewed the file using "VI" editor it is showing 248 records.

Thanks,
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

How did 115 records became 248 ?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

How did 115 records became 248 ?
DataQuality_IS8.1
Premium Member
Premium Member
Posts: 17
Joined: Wed Jun 24, 2009 11:18 am

Post by DataQuality_IS8.1 »

The 248 record count is based on no of lines in sequential file. But these are 115 records which get spaned across 248 lins in sequential file.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, your metadata in the stage only matches those 37 records. Or perhaps your Period in the Viewer is not set to 1. Or your Row Limit is too low. Or all three. :wink:
-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 »

Add a reject link to the Sequential File stage and report back whether the row counts reconcile with this design. If they do, then you will need to perform some of your own detective work to figure out why the rejected rows do not match the record schema you have given in the Sequential File stage.
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