Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Calling Managed OO COBOL from C#

$
0
0

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


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>