Hi,
I am trying to design a job such that if an exception occurs it should write to a file or table
i.e Out of 4 rows from source 2 rows have Varchar2(15) and other 2 rows have Varchar2(12), and the target has a structure of Varchar2(12).
When job runs it throws the warning saying inserted value too large. Now i want the other two rows to be inserted into table and the bad record (ie of length varchar2(15)) should be written to a file or table.
To be simple i have to do an Exception Handling like in Stored Procedure
Exception Handling
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can test the mapping with an Oconv() function. Create a routine that applies the Iconv() function to its argument with "NLSmapname" as the second parameter to Oconv() then test whether the conversion was successful using the Status() function.
Obviously you need to replace "mapname" in the above with the name of an actual NLS map.
Obviously you need to replace "mapname" in the above with the name of an actual NLS map.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.