The following example describes how to use a variable in a free text message.
To use a variable in a free text message:
ctmvar -action SET -var "%%\COMPANY" -VAREXPR BMCSOFTWARE
NOTE: The “\” between the “%%” and “COMPANY” indicates that the variable is global.
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 |