COBOL Programs

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

Note: Your application must include the copybook member SXCCREDW. 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.
    • REDW-RED-TYPE: F (set type as needed “F”, “R” or “G”)
    • REDW-SERVICE: TRIGGER-TEXT (set Service Name to the Trigger Definition Id you want to use)
    • REDW-Container-Name: USERDATA (container name of data created in Step 3)
    • REDW-Single-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.