Errors on socket calls
If you receive errors on socket calls, note the ERRNO that is received, and then look it up in the portion of z/OS Communications Server: IP CICS Sockets Guide that describes return codes.
A SOCKAPI CTRACE can also help diagnose problems with EZASOKET calls.