Joined: 20 Apr 2015 Posts: 3 Location: United States
Am trying to test my CICS web service requester to consume a java API which is hosted on my local machine. When I try to execute the program, it fails during the Http connection open with the below CICS response codes.
20 - Host name is not resolved by name server or the format of the host option is incorrect.
Below is the information provided relevant to these RESP codes by IBM in one of their web page:
If a CICS region operating in a dual-mode environment issues a WEB OPEN command, specifying an IPv6 address (or a hostname that resolves to an IPv6 address) to a listening CICS region that is operating in a single-mode environment, the CICS region issuing the command might receive a NOTFND error code with a RESP2 value of 20 (host name is not resolved by name server or the format of the host option is incorrect). This message can be issued because the dual-mode environment has attempted to connect using IPv6 and the single-mode region does not have IPv6 capability.
I checked that my Internet connection on local machine is both IPv4 and IPv6 enabled.
Below is my HTTP connection statement:
EXEC CICS WEB OPEN
Host('my machine host name')
Portnumber(portnumber on which API is up)
In that case, you MUST contact your site support group and work with them to find out why the mainframe's name server is not resolving your host name of the Tomcat server. There is nothing anyone on this -- or any -- forum can do to help you as the assistance must come from someone working at your site who can investigate the issues.