Operating System - NonStop OS
Showing results for 
Search instead for 
Did you mean: 

Cobol - start a TCP connection

Occasional Contributor

Cobol - start a TCP connection



I am trying to find out how I can create a TCP connect from within cobol.


The thing is that I have already got a program which is set up with a listener process, waiting for someone intiating a connection. In that program the accept for the connection is made with 'enter c "accept_conn" of clib'.


So what I am looking for the program to be the active one to initiate the connection, but I have not been able to find the correct command to be used for the 'enter c.......'


Is there anyone who can guide me in the right direction of manuals og sample code for doing this and/or the possibilities of using 'enter c.......' i cobol on a HP nonstop machine


Best regards




P.S. This thread has been moved from NonStop Servers to NonStop OS. -HP Forum Moderator

Occasional Contributor

Re: Cobol - start a TCP connection

Problem solved :-)


We thought it was some standard c code coming with the nonstop machine - but is was something made by a collegue long time ago and he is not working here anymore.