Creating and Running the ILE C Procedure Call Examples

To create and run ILE C procedure call example 1, follow these steps:

  1. Create one ILE COBOL module and one ILE C module.
  2. Create a program using the two modules
    CRTPGM     PGM(CBL1) MODULE(*CURLIB/CBL1 *CURLIB/C1)
  3. Call the program
    CALL       PGM(*CURLIB/CBL1)

To create and run ILE C procedure call example 2, follow these steps:

  1. Create one ILE COBOL module and one ILE C module:
  2. Create a program using the two modules:
     CRTPGM     PGM(VARG1) MODULE(*CURLIB/VARG1 *CURLIB/CPROC1) 
  3. Call the program:
    CALL       PGM(*CURLIB/VARG1)