185 pts.
 Calling C ILE Program from COBOL 400 ILE Program
[html xmlns=""> I need help in figuring out how to call a C ILE program from a COBOL 400 ILE program. In my example I would like to pass three parameters from the COBOL program (num1, num2, total) to the C program. In the COBOL program I will hardcode the numbers as, say, 9 for num1 and 8 for num2. I would like to pass the num1, num2, and total parms to the C program. The C program would then receive the three variables, comput num1 + num2 and store the result in the variable total. Then return control back to the COBOL program and in the COBOL program, my total variable will be 17. It is very simple as I am trying a proof of concept. I have only developed in COBOL. Having trouble with the calls and the returns.

Software/Hardware used:
ASKED: October 1, 2010  2:22 AM
UPDATED: October 1, 2010  8:05 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Without knowing what the C prototype is, there’s no way to know for sure what the COBOL should look like. Please post the prototype for the C procedure.

Tom

 108,005 pts.