Example Free text message

The following example describes how to use a variable in a free text message.

To use a variable in a free text message:

  1. In Control-M/Server, add the global variable %%COMPANY, as follows:

    ctmvar -action SET -var "%%\COMPANY" -VAREXPR BMCSOFTWARE

    NOTE: The “\” between the “%%” and “COMPANY” indicates that the variable is global.

  2. In a Control-M for Messaging job, in the User free text message section, type the following text:

    carmi %%DATE gogo %%COMPANY

    Once the Control-M for Messaging job has run, view the output file. The contents will show the following results:

    *********************************************************

    * BMC Software Control-M for Messaging *

    * J O B O U T P U T *

    *********************************************************

    Communication Properties : jnp://diamond:1099/

    JMS user :

    Destination Queue : queue/Oren

    Correlation ID : 00014_00002

    **********************************************************

    * Control-M submission of a message to a queue succeeded *

    **********************************************************

    Message sent timestamp:20160723 11:07:08.607

    ============================================

    carmi 080723 gogo BMCSOFTWARE

    NOTE: Click Exclude Job Output if you do not want the output of this job displayed in the Output log. Select Disable Output Banner if you do not want header information banner and the outgoing message added to the output.

    For more information about Predefined Messages, see Creating a Control-M for Messaging connection profile.

Parent Topic

Defining a Control-M for Messaging job