Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Cobol from C

Status
Not open for further replies.

cardy

Technical User
Sep 5, 2000
33
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top