%VERSN
Return the Synergy DBL version number and operating system
WTSupported in traditional Synergy on Windows
|
WNSupported in Synergy .NET on Windows
|
USupported on UNIX
|
VSupported on OpenVMS
|
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:
- DBL/MS-WINDOWS Version v.r.m
- DBL/UNIX Version v.r.m
- DBL/OpenVMS Version v.r.m
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.
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