http://www.perlmonks.org?node_id=1196596


in reply to Code flow not going to while loop

Try explicitly converting the character string to a date with the to_date(...) function (I think that's the correct function in DB2, anyway).