# C Programs

This section provides instructions to construct the RED CICS C application program.

Note: Your application must include the header member sxchredw.h. It is the layout for the parameters used by SXCOTRED.

1. Create the data object you want to publish.
2. Create a Container with the data - USERDATA.
3. Create SXCOTRED parameter Container.
   - Red_Type: F (set type as needed “F”, “R” or “G”)
   - Service: TRIGGER-TEXT (set Service Name to the Trigger Definition Id you want to use)
   - Tsq_Name: USERDATA (containername of data created in Step 3)
   - Container: set to TRUE
4. LINK to SXCOTRED with channel.

   The message published will be the size of the container data.

5. Upon return:
   1. Check CICS return codes.
   2. GET SXCOTRED container which will have the return code and reason code to the request.

Copyright © TIBCO Software Inc. All rights reserved.