Re: Cobol and sockets (104 Views)
Reply
Trusted Contributor
Ian Warner
Posts: 178
Registered: ‎12-04-1997
Message 1 of 3 (104 Views)

Cobol and sockets

I have been asked to see if we can access BSD sockets via Cobol programs. Can anyone point me to the correct manual/examples?.


Ta muchly

Ian Warner
Why did anyone invent unix?
Please use plain text.
Valued Contributor
susan gregory_1
Posts: 43
Registered: ‎02-28-2002
Message 2 of 3 (104 Views)

Re: Cobol and sockets

Hi Ian,
Officially you are not going to find any samples of how to call BSD sockets from COBOL since the only language officially supported on MPE for BSD sockets is Ansi C.
The manual for BSD sockets on MPE is at docs.hp.com->Networking and Communications->
MPE/iX General Networking->Berkeley Sockets/iX Reference Guide, however all the samples are in C.
Please use plain text.
Esteemed Contributor
Mic V.
Posts: 360
Registered: ‎08-21-1997
Message 3 of 3 (104 Views)

Re: Cobol and sockets

Ian,

Here are some links that talk about calling non-COBOL programs:

http://docs.hp.com/cgi-bin/doc3k/B3150090014.11950/27

http://docs.hp.com/cgi-bin/doc3k/B3150090013.11820/160 (it's scattered around)

Since it sounds like Berkeley sockets are not supported (I didn't verify this), you could be able to do it by writing the socket maniuplation stuff in C and calling them from COBOL.

HTH,
Mic
What kind of a name is 'Wolverine'?
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation