# tibemsDestination_Create

Function

## Purpose

Create a destination object.

## C Declaration

    tibems_status tibemsDestination_Create(
        tibemsDestination* destination,
        tibemsDestinationType type,
        const char* name );

## COBOL Call

    CALL "tibemsDestination_Create"
         USING BY REFERENCE destination,
               BY VALUE type,
               BY REFERENCE name,
               RETURNING tibems-status
    END-CALL.

Note: `destination` has usage pointer.

## Parameters

Parameter | Description
--- | ---
`destination` | Store the new destination in this location.
`type` | Create a destination of this type (queue or topic).
`name` | Create a destination with this name.

## See Also

`tibemsDestinationType`

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