# EsbOtlSetDTSMemberAlias

Description

EsbOtlSetDTSMemberAlias() sets an alias name for a DTS member.

Syntax

    EsbOtlSetDTSMemberAlias (hOutline, pszDTSMember, pszAlias, pszAliasTable)

    ByVal hOutline      As Long
    ByVal pszDTSMember  As String
    ByVal pszAlias      As String
    ByVal pszAliasTable As String

Parameters

hOutline | Essbase outline handle returned from the EsbOtlOpenOutlineQuery call.
pszDTSMember | Name of the DTS member which provides the alias.
pszAlias | Pointer to a C string containing the alias name for the DTS member.
pzsAliasTable | Name of the alias table which provides the alias. If NULL, the default alias table is used.

Return Value

If successful the return value is zero. Otherwise, one of the following is returned:

OTLAPI_ERR_DTSMBRNOTDEFINED
OTLAPI_BAD_ALIASTABLE
OTLAPI_ERR_ILLEGALALIASSTRING
OTLAPI_ERR_DUPLICATEALIAS

Example

    Public Sub ESB_OtlSetDTSMemberAlias()

       Dim DTSMember As String * ESB_MBRNAMELEN
       Dim Alias As String * ESB_ALIASNAMELEN
       Dim AliasTable As String * ESB_ALIASNAMELEN

       DTSMember = "Y-T-D"
       Alias = "Year_To_Date"
       AliasTable = "default"

       sts = EsbOtlSetDTSMemberAlias(hOutline, DTSMember, _
                                     Alias, AliasTable)

    End Sub

See Also

EsbOtlDeleteDTSMemberAlias()
EsbOtlEnableDTSMember()
EsbOtlGetEnabledDTSMembers()
EsbOtlGetDTSMemberAlias()