# tibemsConnectionMetaData_GetProvider

Function

## Purpose

Get the version number of the EMS installation.

## C Declaration

    tibems_status tibemsConnectionMetaData_GetProviderMajorVersion(
        tibemsConnectionMetaData metaData,
        tibems_int* providerMajorVersion);

    tibems_status tibemsConnectionMetaData_GetProviderMinorVersion(
        tibemsConnectionMetaData metaData,
        tibems_int* providerMinorVersion);

    tibems_status tibemsConnectionMetaData_GetProviderVersion(
        tibemsConnectionMetaData metaData,
        const char** providerVersion);

## COBOL Call

    CALL "tibemsConnectionMetaData_GetProviderMajorVersion"
         USING BY VALUE metadata
               BY REFERENCE majorVersion
               RETURNING tibems_status
    END-CALL.

    CALL "tibemsConnectionMetaData_GetProviderMinorVersion"
         USING BY VALUE metadata
               BY REFERENCE minorVersion
               RETURNING tibems_status
    END-CALL.

    CALL "tibemsConnectionMetaData_GetProviderVersion"
         USING BY VALUE metadata
               BY REFERENCE version
               RETURNING tibems_status
    END-CALL.

Note: `metadata` and version have usage pointers.

## Parameters

Parameter | Description
--- | ---
`metaData` | `tibemsConnectionMetaData` object from which the version number will be extracted.
`providerMajorVersion` | `tibemsConnectionMetaData_GetProviderMajorVersion` uses this location to store the major version number of the EMS application.
`providerMinorVersion` | `tibemsConnectionMetaData_GetProviderMinorVersion` uses this location to store the minor version number of the EMS application.
`providerVersion` | `tibemsConnectionMetaData_GetProviderVersion` uses this location to store the version number of the EMS application.

## Remarks

EMS applications can retrieve the metaData object from any connection; see `tibemsConnection_GetMetaData`.

Copyright © Cloud Software Group, Inc. All rights reserved.