Db2 response only returns results for one of my sql commands.

About a quarter of the time that I am connecting to my instance of Db2 via the sql_jobs API call I'm only getting results for one last of my three commands, the last one. If I use the UI interface I have no such problems.