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.
October 1, 2010 2:22 AM
October 1, 2010 8:05 PM