# tibemsConsumerInfo_GetDurableName

Function

## Purpose

Get the name of the consumer's durable subscription.

## C Declaration

    tibems_status tibemsConsumerInfo_GetDurableName(
        tibemsConsumerInfo consumerInfo,
        char* name,
        tibems_int name_len);

## COBOL Call

    CALL "tibemsConsumerInfo_GetDurableName"
     USING BY VALUE consumerInfo,
           BY REFERENCE durableName,
           BY VALUE name_len,
           RETURNING tibems-status
    END-CALL.

## Parameters

Parameter | Description
--- | ---
`consumerInfo` | Get the subscription of this consumer.
`name` | Store durable name.
`name_len` | The length of the name buffer.

## Remarks

Return the name of the consumer's durable subscription. Only durable topic consumers have a durable name. The function returns `NULL` if the consumer is a non-durable topic subscriber or a queue receiver.

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