# CICS Execution Command

The command for executing transactions entered from a CICS 3270 screen is XTC2 or XT32.

Their formats are listed as follow:

- `XTC2,<Type(G/R/F)>,<#Msg>,<Msg-Len(1-4096000)>,<Service Name>,<#CTN>,<Delay>`
- `XT32,<Type(G/R/F)>,<#Msg>,<Msg-Len(1-4096000)>,<Service Name>,<#CTN>,<Delay Sec .01>,<#Tasks>`

The details for each input parameter are listed as follows:

- G: Guaranteed using RED Send with Reply API
- R: Reliable using RED Send with Confirm API
- F: Fire and forget using RED Send API
- #Msg: The number of Trigger message to be sent
- Msg-Len(1-4194304): The size of the Trigger message to be sent; valid values for this parameter are in the range 1 - 4096 KB
- Service Name: the Trigger service name to be used
- #CTN: The number of containers to be used; valid values for this parameter are in the range 1 - 20. If this parameter is not present, the COMMAREA is used.
- Delay: The delay time in seconds between calls to SXCOTRED
- Tasks: The number of identical tasks to be started. Valid range is 1 - 10.

For example, the following sample commands run the RED CICS Triggers:

    XTC2,?
    XTC2,,,,RED-TRG-NO-RULES
    XTC2,R,1,2000,RED-TRG-NO-RULES,3
    XTC2,G,1,2000,RED-TRG-TEXT

    XT32,?
    XT32,,,,RED-TRG-NO-RULES
    XT32,R,1,2000,RED-TRG-NO-RULES,5,10
    XT32,G,1,2000,RED-TRG-TEXT

Copyright © TIBCO Software Inc. All rights reserved.