Calling Managed OO COBOL from C#

Hi,

In a nutshell, how can I call managed COBOL from C#. Is there any references I need to add or something ??

 

Best Regards

Parents
  • Hi Chris,

    ILSMARTLINKAGE does remove hyphen from the Linkage variables. Also it creates the Class for the program (as Program Class), with all the methods/entry points as Methods of the class. It converts all 01 level Linkage data items as Classes too.

    For example :  After using the ILSMARTLINKAGE Compiler directive.

    1. A new class is created as Program(Same as program name).

    2. Convert all procedures to methods in the class fro each entry point( for ex Addition ) is a method now in the Program class.

    2. It remove hyphen from the linkage variables and convert it in Upper case. (add-number1 as AddNumber1)

    3. It also create 01 level Linkage items as Class Addnumber1 is a class now , we need to create an object of the Addnumber1 class and assign values to it. then use it in invoking the method. (So all the 01 Level Linkgae variables are converted to class variables)

    But if in a linkage section there is one variable (at 01 level) which is defined using redefine clause than it won't  be converted into the class as mentioned in step 3.

    For ex. 01 Sum  Pic xx redefine add-number1.

    Then Sum wont be converted as a class variable, So to use it we have to use AddNumber1 class variable as part of Program class.

    So how we can solve this problem.

    Hope you are able to understand the problem here.

    Thanks

    Charan

Reply
  • Hi Chris,

    ILSMARTLINKAGE does remove hyphen from the Linkage variables. Also it creates the Class for the program (as Program Class), with all the methods/entry points as Methods of the class. It converts all 01 level Linkage data items as Classes too.

    For example :  After using the ILSMARTLINKAGE Compiler directive.

    1. A new class is created as Program(Same as program name).

    2. Convert all procedures to methods in the class fro each entry point( for ex Addition ) is a method now in the Program class.

    2. It remove hyphen from the linkage variables and convert it in Upper case. (add-number1 as AddNumber1)

    3. It also create 01 level Linkage items as Class Addnumber1 is a class now , we need to create an object of the Addnumber1 class and assign values to it. then use it in invoking the method. (So all the 01 Level Linkgae variables are converted to class variables)

    But if in a linkage section there is one variable (at 01 level) which is defined using redefine clause than it won't  be converted into the class as mentioned in step 3.

    For ex. 01 Sum  Pic xx redefine add-number1.

    Then Sum wont be converted as a class variable, So to use it we have to use AddNumber1 class variable as part of Program class.

    So how we can solve this problem.

    Hope you are able to understand the problem here.

    Thanks

    Charan

Children
No Data