Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CICS Service requester-receiving 'Hostname is not resolved'

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
urampilla

New User


Joined: 20 Apr 2015
Posts: 3
Location: United States

PostPosted: Sat Mar 05, 2016 1:25 am    Post subject: CICS Service requester-receiving 'Hostname is not resolved'
Reply with quote

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.

RESP1 value:
13 NOTFND
RESP2 values:
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')
Hostlength(12)
Portnumber(portnumber on which API is up)
HTTP
SESSTOKEN(TOKEN)
RESP(CICS-RESP)
RESP2(CICS-RESP2)
END-EXEC.

Any help on this is much appreciated.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Sat Mar 05, 2016 3:14 am    Post subject:
Reply with quote

So your local PC is running HTTP server software?
Back to top
View user's profile Send private message
urampilla

New User


Joined: 20 Apr 2015
Posts: 3
Location: United States

PostPosted: Sat Mar 05, 2016 4:01 am    Post subject:
Reply with quote

Robert Sample wrote:
So your local PC is running HTTP server software?


Yes, it is running on Tomcat server which is configured to use HTTP.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Sat Mar 05, 2016 7:17 am    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
urampilla

New User


Joined: 20 Apr 2015
Posts: 3
Location: United States

PostPosted: Tue Mar 08, 2016 10:54 am    Post subject:
Reply with quote

I could have the issue resolved by configuring tomcat server to use my machine IP address from default IP address, 127.0.0.1. Then opening the Web connection to IP address instead of hostname.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us