Please enable JavaScript to view this site.

A-Shell Consolidated 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.