I have a test tool originally written in COBOL that I use to send transactions to our servers which is done via IPC. I now need to simulate sending transactions to our systems the same way outside vendors via a socket connection. I am not finding thatCOBOL supports tcpip socket io. If that is true, I was considering writing a C module to handle the tcpip and CALL'ing it from the COBOL test tool. However, I'm also finding Guardian COBOL does not support mixed language support as it does in OSS. So
On Mon, 27 Dec 2021 13:54:11 -0800 (PST), SRSeedBurners <sterli...@gmail.com> wrote:COBOL supports tcpip socket io. If that is true, I was considering writing a C module to handle the tcpip and CALL'ing it from the COBOL test tool. However, I'm also finding Guardian COBOL does not support mixed language support as it does in OSS. So my
I have a test tool originally written in COBOL that I use to send transactions to our servers which is done via IPC. I now need to simulate sending transactions to our systems the same way outside vendors via a socket connection. I am not finding that
Not sure what led you to believe that mixed-language is not supported in Guardian Native compilers.
Both the 'NonStop COBOL Manual for TNS/E and TNS/X Programs' and the 'C/C++ Programmer's Guide for NonStop Systems' say that both can be mixed.
You can't use COBOL85, you have to use Native COBOL (ECOBOL or XCOBOL, depending on your system).
You also have to use Native C (NMC or CCOMP, depending on your system). You will needt to use eld or xld to link them together.
You could also do all builds in OSS, or on Windows using the cross compilers. All are documented in the manuals.
Best of luck,
Bill
On Mon, 27 Dec 2021 13:54:11 -0800 (PST), SRSeedBurners <sterli...@gmail.com> wrote:
Not sure what led you to believe that mixed-language is not supported in Guardian Native compilers.
On Monday, December 27, 2021 at 4:13:05 PM UTC-8, Bill Honaker wrote:that COBOL supports tcpip socket io. If that is true, I was considering writing a C module to handle the tcpip and CALL'ing it from the COBOL test tool. However, I'm also finding Guardian COBOL does not support mixed language support as it does in OSS.
On Mon, 27 Dec 2021 13:54:11 -0800 (PST), SRSeedBurners <sterli...@gmail.com> wrote:
I have a test tool originally written in COBOL that I use to send transactions to our servers which is done via IPC. I now need to simulate sending transactions to our systems the same way outside vendors via a socket connection. I am not finding
Guardian when doing such a build from OSS.Not sure what led you to believe that mixed-language is not supported in Guardian Native compilers.
Both the 'NonStop COBOL Manual for TNS/E and TNS/X Programs' and the 'C/C++ Programmer's Guide for NonStop Systems' say that both can be mixed.
You can't use COBOL85, you have to use Native COBOL (ECOBOL or XCOBOL, depending on your system).
You also have to use Native C (NMC or CCOMP, depending on your system). You will needt to use eld or xld to link them together.
You could also do all builds in OSS, or on Windows using the cross compilers. All are documented in the manuals.
Best of luck,
Bill
In addition to all that Bill said:
If you want to build a Guardian program in OSS, you can do so by including the -Wsystype=guardian directive for the compiler to get it to create object files for running as Guardian processes. Make sure any libraries you reference explicitly are for
I'm not sure why Bill said you couldn't use COBOL85. If the Guardian sockets library is not available as a TNS (code 100) file, then that would prevent using it from a COBOL85 program, but I think the Guardian sockets library is old enough that itoriginally was a TNS file. Perhaps they don't distribute the TNS version any more?
Anyway, you should be able to do what you want as a mixed COBOL and C program. If you still see some barrier, post again with more specifics about what seems to be a problem, and I am sure we will be able to help.
On Mon, 27 Dec 2021 18:02:14 -0800 (PST), Keith Dick <rkd...@gmail.com> wrote:that COBOL supports tcpip socket io. If that is true, I was considering writing a C module to handle the tcpip and CALL'ing it from the COBOL test tool. However, I'm also finding Guardian COBOL does not support mixed language support as it does in OSS.
On Monday, December 27, 2021 at 4:13:05 PM UTC-8, Bill Honaker wrote:
On Mon, 27 Dec 2021 13:54:11 -0800 (PST), SRSeedBurners <sterli...@gmail.com> wrote:
I have a test tool originally written in COBOL that I use to send transactions to our servers which is done via IPC. I now need to simulate sending transactions to our systems the same way outside vendors via a socket connection. I am not finding
Guardian when doing such a build from OSS.Not sure what led you to believe that mixed-language is not supported in Guardian Native compilers.
Both the 'NonStop COBOL Manual for TNS/E and TNS/X Programs' and the 'C/C++ Programmer's Guide for NonStop Systems' say that both can be mixed.
You can't use COBOL85, you have to use Native COBOL (ECOBOL or XCOBOL, depending on your system).
You also have to use Native C (NMC or CCOMP, depending on your system). You will needt to use eld or xld to link them together.
You could also do all builds in OSS, or on Windows using the cross compilers. All are documented in the manuals.
Best of luck,
Bill
In addition to all that Bill said:
If you want to build a Guardian program in OSS, you can do so by including the -Wsystype=guardian directive for the compiler to get it to create object files for running as Guardian processes. Make sure any libraries you reference explicitly are for
originally was a TNS file. Perhaps they don't distribute the TNS version any more?I'm not sure why Bill said you couldn't use COBOL85. If the Guardian sockets library is not available as a TNS (code 100) file, then that would prevent using it from a COBOL85 program, but I think the Guardian sockets library is old enough that it
Anyway, you should be able to do what you want as a mixed COBOL and C program. If you still see some barrier, post again with more specifics about what seems to be a problem, and I am sure we will be able to help.Keith, I think I meant you couldn't use it with Native C... and also my thoughts included OSS which doesn't support TNS.
But of course one can easily use C, COBOL85 and BIND, if that lowers the learning curve.
For a program to run in OSS, another thing to consider is 'native' POSIX TCP/IP calls rather than the Guardian sockets.
There are many, many ways to solve the OP's (SRSeedBurners) dilemma.
Bill
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 225:23:28 |
Calls: | 6,623 |
Calls today: | 5 |
Files: | 12,171 |
Messages: | 5,318,600 |