Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$VERSION^%ZOSV(): Get OS Version Number or Name

Reference Type: Supported, Category: Operating System Interface, ICR#: 10097

Description

The $$VERSION^%ZOSV extrinsic function returns the operating system version number or name.

Format

  $$VERSION^%ZOSV([flag])

Input Parameters

flag:

(optional) If you pass a value of 1, the operating system name is returned instead of the version number.

NOTE: The name is as defined by the vendor and does not necessarily correspond with the OS name stored in ^%ZOSF("OS").

Output

returns:

Returns the operating system version number or name, depending on the (optional) flag input parameter.

Examples

Example 1

>W $$VERSION^%ZOSV(1)

Cache for OpenVMS/ALPHA V7.x (Alpha)

Example 2

>W $$VERSION^%ZOSV

4.1.16