SAS.EnsureVersion

Prototypes

static void EnsureVersion( int nMajorVersion, int nMinorVersion )

Parameters

int nMajorVersion
The minimum required major version number of the SAS server.

int nMinorVersion
The minimum required minor version number of the SAS server.

Remarks

This method ensures that the SAS server on which the program is running meets the specified version number requirement. If the version number of the SAS server is less than that specified, the program stops running and issues an error message.

This method is usually used by programs that call SAS procedures that were introduced in newer versions of SAS.

Example
SAS.EnsureVersion( 9, 2 );
See Also

SAS.GetVersion
SAS.IsVersionOrLater