Please enable JavaScript to view this site.

A-Shell Reference

xcall GETVER, verstring

GETVER returns the version of the currently running program module, either RUN or LIT or SBX.

Parameters

verstring  [out]  (String)

should be 13+ characters to handle the longest possible version string.

Example

Given the following PROGRAM statement:

PROGRAM MYTEST,1.0A(234)

GETVER would return:

1.0A(234)

Comments

If the program is currently executing an SBX, then GETVER will return the version of the SBX rather than the version of the main program.

A module with no PROGRAM statement will return version "0.0(0)"

The version string returned by GETVER is the same as that displayed by DIR/V and also the same as the value of the dot variable .PGMVERSION.

To retrieve the version of a program module other than the one currently executing (i.e. like DIR/V does), see the function Fn'ProgVer$(fspec) in SOSLIB:[907,11].

See Also

VERSYS.LIT, which returns the versions of source modules embedded within a compiled program module.
MX_GETVERxs, which returns the A-Shell version.
MX_OSVERxs which returns the operating system version information
Fn'MinAshVer() in SOSLIB:[907,10] provides an easy way to check that A-Shell and/or ATE are at least a specified version.
Fn'FileVer$() in SOSLIB:[907,10] retrieves the version of a program file on disk.