How to Reject Rows having NLS mismatch

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
mgsteiner
Premium Member
Premium Member
Posts: 42
Joined: Wed Aug 31, 2011 2:56 am
Location: St. Gallen - CH
Contact:

How to Reject Rows having NLS mismatch

Post by mgsteiner »

Does anybody have any hints regarding how to reject rows in a transformer when they have NLS Errors?

My Job Looks like : XML Input file --> Transformer --> Hash File

What I want to do is to check NLS compatibility in every row I read in the transformer and reject the ones not compatible or the ones that produce warnings in the Job log. So at the end I can check and have a Report which rows are having Problems

Thanks a lot in advance

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

Post by ray.wurlod »

Invoke a routine that applies an Oconv() function specifying the NLS map, and check the value of Status(). It will be 0 if the NLS mapping was successful, or a non-zero value otherwise. Use that result to determine whether to reject the row or not.
Last edited by ray.wurlod on Thu May 16, 2013 1:57 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mgsteiner
Premium Member
Premium Member
Posts: 42
Joined: Wed Aug 31, 2011 2:56 am
Location: St. Gallen - CH
Contact:

Post by mgsteiner »

Thanks a lot for your reply, Ray. But unfortunately, I'm still not a premium member and I cannot see the full message.

Would it be possible for you to reply ot my message in any other way, or tu send the reply to my email.

Thanks a lot in advance
Rgds
Max
MGS
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The pith of my response was already visible, so I've exposed the remainder.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mgsteiner
Premium Member
Premium Member
Posts: 42
Joined: Wed Aug 31, 2011 2:56 am
Location: St. Gallen - CH
Contact:

Post by mgsteiner »

Thanks a lot Ray!. I have done as you suggested and worked perfect.

Thanks a lot for you help

Rgds
Max
MGS
Post Reply