Product Site

8.67. SysVersion

Returns a string to identify the operating system and version. The first word of the returned string contains the identifier for the operating system and the rest of the string contains an operating system specific version string. Rexx code should not rely on the exact format returned.

Possible output may be:
Example 8.47. RexxUtil — SysVersion
-- CentOS 7
say SysVersion() -- Linux 3.10.0-957.10.1.el7.x86_64
-- Ubuntu 16.04
say SysVersion() -- Linux 4.4.0-154-generic
-- macOS 10.13
say SysVersion() -- Darwin 18.7.0
-- Raspbian
say SysVersion() -- Linux 4.14.70-v7+
-- SLES/390
say SysVersion() -- Linux 3.12.74-60.64.40-default
-- Windows 10
say SysVersion() -- Windows 10.0.18363

See also functions SysWinVer (Windows only) and SysLinVer (Linux Only).