As SQLCODE is 0 I would expect to see it as
and I do not see that anywhere in what you posted.
What is the PIC definition of WS-NAME?
What is its value in hex? (I expect to see something like this:
What is the PIC definition of IBMREQD and what is its expected value?
The problem I have is that people can explain things quickly but I can only comprehend slowly.