CMSG examples
These examples show you how to modify the behavior of CMSG by changing the parameters.
Here are some typical examples of the CMSG transaction. Examples
1, 2, 3, and 9 are possible candidates for inclusion in a sequential
(BSAM) terminal input stream during startup.
In these examples, # represents a new-line
character.
- 1. CMSG R=ALL,‘GOOD MORNING#TODAY IS FRIDAY FEB 1',S
- This sends a good morning message to all terminals.
- 2. CMSG ‘GOOD MORNING',R=.G1,T=0900,S
- This routes a good morning message to be delivered at 0900 hours to all destinations contained in DFHTLTG1. (Locations in Eastern time zone.)
- 3. CMSG ‘GOOD MORNING',R=(.G2,+CHI4),T=1000,S
- This message is for delivery at 10.00 hours to terminals in Central time zone (DFHTLTG2). Also included as a destination is termid CHI4, which was recently added but not yet included in the TLT.
- 4. CMSG ‘SUPERVISORS' ‘MEETING IN 5 MINUTES',O=(4,7),S
- This routes the message to all supervisors who are assigned operator class 4 or 7 and are currently signed on to CICS®.
- 5. CMSG R=ALL,‘NEW PRICE MODEL 402 - $28.70',S
- This sends the price of the new model to all terminals.
- 6. CMSG ‘FRED - WHAT IS CURRENT STOCK ON P/N 4837-LP4# BPK',R=BLD3,H,S
- This routes a message to BLD3 asking Fred a question and including the initials of the requestor (operator identifier). A heading is included so that Fred also knows the originating termid.
- 7. CMSG ‘PNO 4837-LP4, QTY 26?',R=/BPK,H,S
- This shows Fred's answer routed to the terminal at which operator identifier BPK is currently signed on.
- 8. CMSG ‘BRID KADDER ARRIVING 3:15 PST. PLEASE MAKE RESERVATION# M. KRN',R=PADC,H,S
- This makes a request for a reservation for a Mr Kadder.
- 9. CMSG ‘SHUTDOWN IN 5 MINUTES',R=ALL,T=1655,S
- This sends the shutdown message to all terminals.