I do not have a problem with calling functions from library using C nor Cobol.
Now I'm looking for a way to create load modules for this functions from C code
Original Message:
Sent: Mon April 15, 2024 06:54 AM
From: Bernie Rataj
Subject: Cobol load modules from C code functions
Hi Piotr,
People are I believe having difficulty understanding what you're asking. There is no such thing as a COBOL load module, there are only load modules containing COBOL, C, etc code. When it comes to your C code, it's not clear if you have a DLL containing all 1000 C functions, or an archive library containing the compiled C code, and you have a COBOL that will call the DLL or you want to statically bind the C code into that COBOL code.
Bernie
------------------------------
Bernie Rataj
Technical Support Professional
IBM Canada Ltd.
Markham ON Canada
https://www.ibm.com/products/cobol-compiler-zos
https://www.ibm.com/products/pli-compiler-zos
Original Message:
Sent: Fri April 12, 2024 06:18 AM
From: Piotr Synowiec
Subject: Cobol load modules from C code functions
I do not have a problem with neither of these things.
I have lib compiled into DLL with all the routines, which I have over 1000 in single C files.
I'm looking for a way to create Cobol load modules from those routines in C files
------------------------------
Piotr Synowiec
Original Message:
Sent: Mon April 08, 2024 07:01 AM
From: Carlos A.
Subject: Cobol load modules from C code functions
Hello,
Assuming the scenario being on z/OS I think you should take a look at Communicating between C and COBOL.
Otherwise, on IBM COBOL for Linux on x86 I think you should look at COBOL program calling C functions.
Regards.
------------------------------
Carlos A.
None
Original Message:
Sent: Tue April 02, 2024 11:09 AM
From: Piotr Synowiec
Subject: Cobol load modules from C code functions
Good day,
I have following scenarion:
C code with functions
- func1.c - independent
- func2.c - independent
- func3.c - calls func1 & func2
How I can compile and create separate load modules for Cobol above C code ?
I need single module per single C code file.
C code file includes only one fuinction
Regards,
Piotr
------------------------------
Piotr Synowiec
------------------------------