Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
PaoloR Super Contributor.
Super Contributor.
485 views

OO COBOL

Jump to solution

Not sure if this is the right forum for this question but the COBOL forum does not seem to be active.

If I want to write OO COBOL programs (not .NET programs) is there an OO Standard to which MF compilers adhere? I have an old copy of MF Object COBOL (32 bit) and also Visual COBOL PE, which, I presume, supports OO programming. To what extent do MF compliers such as the two mentioned adhere to any standard and/or provide extensions to the standard?

Thanks

Paul

 

 

 

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: OO COBOL

Jump to solution
Please include full product information, including version platform, in your questions. In the case of Visual COBOL, is it VC for Eclipse or for Visual Studio? We can't answer accurately if we don't know what you're running, or in what environment.

Native OO COBOL has been somewhat less successful in the market than traditional procedural COBOL, and my impression is that it has also received less attention from developers than managed OO COBOL. Consequently you won't find a lot of discussion about it here or in other forums.

Regarding native OO COBOL in general, the Visual COBOL product documentation includes reference information and a link to this online book:

supportline.microfocus.com/.../Intro_to_OO_Programming_for_COBOL_Developers.pdf

The product documentation also refers native-OO-COBOL developers to the OO COBOL class library documentation, which is in a separate file, nxrclr.chm.

As noted in the product documentation, Micro Focus Visual COBOL includes some but not all of the COBOL 2002 standard (ISO/IEC 1989:2002), which defines standard OO COBOL (along with the 2002 version of procedural COBOL). It also includes extensions to COBOL 2002. For example, if you consult the product documentation topic on Predefined Object References (General Reference > COBOL Language Reference > Part 1 Concepts > Language Fundamentals > Object-oriented COBOL Concepts), you'll see that Micro Focus adds the non-standard SELFCLASS predefined reference:

www.microfocus.com/.../HRLHLHCPRO01U923.html

As far as I know, there's no summary of what Micro Focus COBOL implements of the 2002 OO COBOL standard, what it does not implement, and what extensions it adds.
0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

RE: OO COBOL

Jump to solution
Please include full product information, including version platform, in your questions. In the case of Visual COBOL, is it VC for Eclipse or for Visual Studio? We can't answer accurately if we don't know what you're running, or in what environment.

Native OO COBOL has been somewhat less successful in the market than traditional procedural COBOL, and my impression is that it has also received less attention from developers than managed OO COBOL. Consequently you won't find a lot of discussion about it here or in other forums.

Regarding native OO COBOL in general, the Visual COBOL product documentation includes reference information and a link to this online book:

supportline.microfocus.com/.../Intro_to_OO_Programming_for_COBOL_Developers.pdf

The product documentation also refers native-OO-COBOL developers to the OO COBOL class library documentation, which is in a separate file, nxrclr.chm.

As noted in the product documentation, Micro Focus Visual COBOL includes some but not all of the COBOL 2002 standard (ISO/IEC 1989:2002), which defines standard OO COBOL (along with the 2002 version of procedural COBOL). It also includes extensions to COBOL 2002. For example, if you consult the product documentation topic on Predefined Object References (General Reference > COBOL Language Reference > Part 1 Concepts > Language Fundamentals > Object-oriented COBOL Concepts), you'll see that Micro Focus adds the non-standard SELFCLASS predefined reference:

www.microfocus.com/.../HRLHLHCPRO01U923.html

As far as I know, there's no summary of what Micro Focus COBOL implements of the 2002 OO COBOL standard, what it does not implement, and what extensions it adds.
0 Likes
PaoloR Super Contributor.
Super Contributor.

RE: OO COBOL

Jump to solution
Michael

Thanks for the reply, which seems to answer my questions. Just for the record I have Object COBOL 4.0.38 32 bit character development environmant and Visual COBOL PE for Visual Studio both running on WIndows 7. I will examine the various documentation links that you mentioned.

Paul
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: OO COBOL

Jump to solution
Hi Paul,

I would definitely recommend that you look more closely at the Visual COBOL product as the Object COBOL product has not been supported in like 15+ years. Object COBOL was released prior to the general availability of the ISO2002 standard so does not include that functionality as part of the product.


Visual COBOL is the current product release from Micro Focus.
0 Likes
PaoloR Super Contributor.
Super Contributor.

RE: OO COBOL

Jump to solution
Chris

You are correct, of course. I had forgotten that Object COBOL only had some support for the earlier OO Standard. Thanks.
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.