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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!