Highlighted
Honored Contributor.
Honored Contributor.
1199 views

Data Type Conversion

Jump to solution

I am looking for specific examples of how, in a Managed COBOL program/class, how to convert back and forth between traditional COBOL data types (such as COMP-3, COMP-5, COMP-X ) to equivalent Net types, and vice-versa.  For example, the data file being processed in the Managed COBOL program has some of these traditional COBOL data types - I need to see how to convert them, both to and from Managed types - specific examples.

Thanks

0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Data Type Conversion

Jump to solution

Hi

You can simply use the Cobol Statement SET. See also in Help for implicit conversion and Compatible Types Example in .NET COBOL Interoperation.

Regards

Werner Lanter

View solution in original post

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

RE: Data Type Conversion

Jump to solution

Hi

You can simply use the Cobol Statement SET. See also in Help for implicit conversion and Compatible Types Example in .NET COBOL Interoperation.

Regards

Werner Lanter

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.