How to call COBOL from C# interface

Hi,

Please let me know how to call COBOL program(API created in COBOL) in my C# interface with out changing original code.

Thanks,

Manasa 

Parents
  • Hi Manasa,

    If you are referring to calling a procedural COBOL program that uses a linkage section to pass parameters directly from C# then you should look into using the ilsmartlinkage directive.

    An example can be found in the docs here:

    There is also an example under the Samples Browser, select COBOL Book in the left hand pane and then C# WinBook in the right hand pane.

    Thanks.

Reply
  • Hi Manasa,

    If you are referring to calling a procedural COBOL program that uses a linkage section to pass parameters directly from C# then you should look into using the ilsmartlinkage directive.

    An example can be found in the docs here:

    There is also an example under the Samples Browser, select COBOL Book in the left hand pane and then C# WinBook in the right hand pane.

    Thanks.

Children
No Data