Sockets and COBOL

I got a hospital job that still uses COBOL for all organizational work, I have a whole (now 20 terabytes) database (which was homegrown, guess what, COBOL) has been populated with each patient's data since the last 45 (or so that) years.

So that was my story. Now to my question:

Currently, all sockets (from what I saw) implemented by COBOL programs write their data to files. Then these files were read using C ++ programs (this was an additional module added at the end of the 1980s) and using C ++ sockets sent to the database.

Now this solution has stopped working, because they are moving the database from COBOL to COBOL, yes - they did not use MySQL or so - they implemented the new database - again in COBOL. I asked the guy who worked there before me (now about 70) why the hell someone would do it, and he told me that he is so good at COBOL that he does not want to write it in any other language.

So far so good now my question is:

  • How to implement socket connections in COBOL? I need to create an interface to external database the COBOL, located, for example 192.168.1.23:283.
+3
source share
4 answers

You need to provide additional information about your OS and compiler.

IBM z/OS , EZASOCK z/OS. Cobol.

.

"" , , , DLL sharedLib - .

?

Cobol?

+4

IBM API- , COBOL. CICS (, envrinment), IMS.

TCP/IP MVA ( , ).

+1

COBOL DLL. , , , . DEC, , .

0

, Google - .

.

IBM , Sockets API, COBOL, CICS z/OS.

-.

0

Source: https://habr.com/ru/post/1740829/


All Articles