Thank you! After thinking about it, I think I understood it :-) I only
have one more Problem: The NAME field is a CHAR(30) field and am I
right that if I insert a name of the Length 15 the rest will be filled
with '!'? Then the comparison will fail and the CHECK returns false?
So I did this:
CHECK(TRANSLATE(NNAME, '', '
aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyY zZ') = '')
But there is the problem that blanks are allowed in the NAME!
Douglas Doole <do***@ca.ibm.com> wrote in message news:<bp**********@hanover.torolab.ibm.com>...
Try:
TRANSLATE(NAME, '!', ' aAbBcC...xXyYzZ) = ''
(You have to fill in all the letters where I used "...")
This will replace space with ! and all the letters with spaces. (Effectively
leaving a non-space character for evey non-letter. You then compare it to a
blank string.