# tibemsSession_CreateStreamMessage

Function

## Purpose

Create a stream message.

## C Declaration

    tibems_status tibemsSession_CreateStreamMessage(
        tibemsSession session,
        tibemsStreamMsg* streamMsg );

## COBOL Call

    CALL "tibemsSession_CreateStreamMessage"
         USING BY VALUE session,
               BY REFERENCE streamMsg,
               RETURNING tibems-status
    END-CALL.

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

## Parameters

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

## Remarks

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

## See Also

`tibemsStreamMsg`

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