Relative Content

Tag Archive for ccobolargv

COBOL program calling LE C program

I am trying to call a LE C program (test program that just prints the arguments) from my COBOL program.
I pass a structure to my C program and print the received values. However, as you can see in the output, the first 2 bytes of function are missing when printing argv[1]. Could anyone help fix this?
Is this the correct way to call a LE C program from COBOL program (I need to pass upto 3 structures like CALL cpgm USING struct1 struct2 struct3) or is there a better way? Any examples would really help.