Re: Call COBOL from C dynamically...

2005-06-30 Thread Jan MOEYERSONS
This can be accomplished by using the fetch() c run-time library function. Check the z/OS C/C++ Run-Time Library Referance book, It contains an elaborate example of calling a COBOL program using fetch(). Gil. Just a caveat on something that might not be explicit from the documentation nor the

Call COBOL from C dynamically...

2005-06-29 Thread Michael Knigge
All, I have a C-Prog and a COBOL-Prog and I want to call the COBOL-Prog from C - but dynamically! Like: int main() { printf(Calling famous COBOL...\n); COBPROG(); printf(Ahhh, back again ;)\n); } So, what happens is that the linker includes the Load-Module of COBPROG into the

Re: Call COBOL from C dynamically...

2005-06-29 Thread Gil Peleg
Hi Michael, This can be accomplished by using the fetch() c run-time library function. Check the z/OS C/C++ Run-Time Library Referance book, It contains an elaborate example of calling a COBOL program using fetch(). Gil. On 6/29/05, Michael Knigge [EMAIL PROTECTED] wrote: I have a C-Prog