static int GetVersion()
static void GetVersion( Matrix mMajorVersion, Matrix mMinorVersion <, Matrix mReleaseIteration <, Matrix mMaintenanceLevel>> )
static void GetVersion( int[] anMajorVersion, int[] anMinorVersion <, int[] anReleaseIteration <, int[] anMaintenanceLevel>> )
The return value is an integer that contains the version number of the SAS server. The base ten representation of the return value is aabbccdd, where aa is the major version number, bb is the minor version number, cc is the release iteration, and dd is the maintenance level.
Matrix mMajorVersion
Upon return, contains the major version number of the SAS server.
Matrix mMinorVersion
Upon return, contains the minor version number of the SAS server.
Matrix mReleaseIteration
Upon return, contains the release iteration of the SAS server.
Matrix mMaintenanceLevel
Upon return, contains the maintenance level of the SAS server.
int[] anMajorVersion
Upon return, anMajorVersion[0] contains the major version number of the SAS server.
int[] anMinorVersion
Upon return, anMinorVersion[0] contains the minor version number of the SAS server.
int[] anReleaseIteration
Upon return, anReleaseIteration[0] contains the release iteration of the SAS server.
int[] anMaintenanceLevel
Upon return, anMaintenanceLevel[0] contains the maintenance level of the SAS server.
This method retrieves the version number of the SAS server on which the program is running. The form of this method that returns an integer is useful for comparing with another version number.
if SAS.GetVersion() >= 09040103 then print "Running on SAS 9.4 (TS1M3) or later."; else print "Running on an older version of SAS.";