Identify records that generate warnings/errors

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
pdntsap
Premium Member
Premium Member
Posts: 107
Joined: Mon Jul 04, 2011 5:38 pm

Identify records that generate warnings/errors

Post by pdntsap »

Hello,

What is the best method of identifying records that generate warnings/errors? We have millions of records as input and we implement the StringToDate() function and some records generate the following warning in the log:

Code: Select all

 Conversion error calling conversion routine date_from_string data may have been lost
We know which stage is giving us the warning but would like to know the record that causes it. Thanks for the help.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You'll need to build in your own tests. They don't happen automatically.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pdntsap
Premium Member
Premium Member
Posts: 107
Joined: Mon Jul 04, 2011 5:38 pm

Post by pdntsap »

OK. Thanks.
cdp
Premium Member
Premium Member
Posts: 113
Joined: Tue Dec 15, 2009 9:28 pm
Location: New Zealand

Post by cdp »

Have you/do you have access to any data profiling tools, such as Information Server Information Analyzer or InfoSphere Discovery (there are also a whole host of non ibm and open source options). These sorts of tools should be used during the onboarding/analysis of new data sources to identify the unique patterns (e.g. pattern YYYY-MM-DD occurs 70% of the time and DD-MMM-YYYY occurs 20% etc) as opposed to values found in the data so that transformation requirements can be identified upfront.

Else if you want to test in DataStage a precheck something like this post might allow you to trap the data and perform some additional transformations.
Post Reply