skip to main content

Library Routines : WIN$VERSION

WIN$VERSION
The WIN$VERSION library routine retrieves extended information about the Windows operating system where the isCOBOL framework is running. See the ACCEPT FROM SYSTEM INFO statement for additional information about the host operating system.
Note - If your current JVM was released before the current operating system, then values returned by this routine may not be accurate.
Syntax:
 CALL "WIN$VERSION" USING WINVERSION-DATA
Parameters:
01  winversion-data.
    03 win-major-version         pic x comp-x.
    03 win-minor-version         pic x comp-x.
    03 win-platform              pic x comp-x.
       88 platform-win-31        value 1.
       88 platform-win-95        value 2.
       88 platform-win-9x        value 2.
       88 platform-win-nt        value 3.
    03 win-wordsize              pic x comp-x.
       88 win-wordsize-16        value 1.
       88 win-wordsize-32        value 2.
       88 win-wordsize-64        value 3.
Examples:
Example - Get Windows version information
call "win$version" using winversion-data
display message "Win major version : " win-major-version x"0d0a"
                "Win minor version : " win-minor-version x"0d0a"
                "Win platform      : " win-platform.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left