Skip to Content
0
Former Member
Oct 18, 2005 at 12:12 PM

check a convertion from CHAR TO NUMC

859 Views

Hi,

I import a flatfile into a structure that contains only CHAR-fields. Then I make a TRY-CATCH construct for every field in P,I,F,N..-datatypes to check if the data is correct.

P,I,F raise a CONVERT-Exception that i can handle.

A move to N-field raise no exception but put a wrong values to the N-field.

Example:

Charfield contains ' 1 1 0000', N-field is '110000'.

A compare in the program like

IF C-Field <> N-Field raise a exception that can't be catched by TRY-Catch.

How can i check if the field is correct?

Anybody understand me and have an idea?

Regards,

Stefan