SAS.IsVersionOrLater

Prototypes

static boolean IsVersionOrLater( int nMajorVersion, int nMinorVersion <, int nReleaseIteration <, int nMaintenanceLevel>> )

Return Value

If the version number of the SAS server is greater than or equal to the specified version number, the return value is true. Otherwise, the return value is false.

Parameters

int nMajorVersion
The major version number of a SAS server release.

int nMinorVersion
The minor version number of a SAS server release.

int nReleaseIteration
The release iteration of a SAS server release. Calling this method without specifying this parameter is equivalent to calling it with nReleaseIteration equal to 0.

int nMaintenanceLevel
The maintenance level of a SAS server release. Calling this method without specifying this parameter is equivalent to calling it with nMaintenanceLevel equal to 0.

Remarks

Use this method to determine whether the version number of the SAS server on which the program is running is greater than or equal to the specified version number.

Example
if SAS.IsVersionOrLater( 9, 4, 1, 3 ) then
    print "Running on SAS 9.4 (TS1M3) or later.";
else
    print "Running on an older version of SAS.";
See Also

SAS.EnsureVersion
SAS.GetVersion