Well, looks like there's no solution for this issue. As pointer by @TOndrej and @DavidG, this QC issue was never solved an no one seems to know how to work around it.
In my case, I will give up and inform my superiors that we can't support DB2 anymore unless we rewrite the application. Anyhow, thanks to everyone that tried to help me.