%VERSN

Return the Synergy DBL version number and operating system

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
version = %VERSN([buildnum])

or

xcall VERSN(version[, buildnum])

Return value

version

%VERSN returns the operating system and current version number of the Synergy runtime in one of the following formats:

where v is the version number, r is the major revision number, and m is the minor revision number. (a)

Arguments

buildnum

(optional) The four-digit build number.

Discussion

%VERSN returns a textual string that identifies the Synergy DBL environment in which the program is running.

Version is stored left-justified over blanks. Each r and m component can only be a single digit.

Tip

You can get the current build number at compile time using the SYN_BUILDNUMBER define. See Built-in compiler definitions for more information about compile-time definitions.

Examples

The following example displays the operating system and Synergy DBL runtime version on which the program is running.

.define TTCHN   ,1
record
    ident       ,a50
proc
    open(TTCHN, o, "tt:")
    ident = %versn
    writes(TTCHN, "Synergy system is: " + %atrim(ident))
    stop
end