Hi
I am no COBOL expert, but I think, that Marcus_A is not correct. You have to change all trailing blanks by '%', because if you only append one '%' behind the last character, DB2 will look, in your example for a name beginning with 'TH', followed by anything, but with 17 blanks at the end (assuming your host-variable is CHAR(20)).