# tibemsSession_CreateMessage

Function

## Purpose

Create a message.

## C Declaration

    tibems_status tibemsSession_CreateMessage(
        tibemsSession session,
        tibemsMsg* message );

## COBOL Call

    CALL "tibemsSession_CreateMessage"
         USING BY VALUE session,
               BY REFERENCE message,
               RETURNING tibems-status
    END-CALL.

Note: `session` and `message` have usage pointer.

## Parameters

Parameter | Description
--- | ---
`session` | Create the message in this session.
`message` | The function stores the new message object in this location.

## Remarks

The JMS specification requires this call. It is equivalent to `tibemsMsg_Create`.

## See Also

`tibemsMsg`

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