Created On:  20 August 2010

Problem:

Is it possible to identify the version of the Operating System from an ACUCOBOL-GT program?

Resolution:

ACUCUBL-GT offers a native library called WIN$VERSION.  This routine returns version information for Windows and Windows NT host platforms. However, this routine does not recognize the latest Windows Operating Systems recently introduced on the market.

While WIN$VERSION will be updated, it is possible to obtain this information using a Windows function called GetVersionExA.

The related documentation can be found at this URL:
http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx

A sample program is provided attached to this article.
Incident #2450426