I have a Cobol program that I would like to call from a C program. The linkage section of the Cobol program has some numeric fields defined as :-
FIELD1 PIC S9(9)V99 BINARY.
FIELD2 PIC 9(7) BINARY.
I'm having trouble passing values for these numeric fields into the Cobol program. I have defined the corresponding fields in the C program as short, int, long (and their unsigned counterparts) and double but nothing seems to work. How must my C variables be defined in order to pass values into the Cobol program.
TIA
Cardy
FIELD1 PIC S9(9)V99 BINARY.
FIELD2 PIC 9(7) BINARY.
I'm having trouble passing values for these numeric fields into the Cobol program. I have defined the corresponding fields in the C program as short, int, long (and their unsigned counterparts) and double but nothing seems to work. How must my C variables be defined in order to pass values into the Cobol program.
TIA
Cardy