z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Declaration for COBOL calling C

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

COBOL program C function
LINKAGE SECTION.
01 P1 PIC S9(9) USAGE IS BINARY
01 P2 PIC S9(9) USAGE IS BINARY
CALL 'CFUNC' USING BY VALUE P1
     RETURNING P2.

 
int CFUNC(int p1){
  int p2;
  p2=p1;
  return p2;
}

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014