Message Handling: Presented by
Message Handling: Presented by
Message Handling: Presented by
Presented By
What is Message?
There are two main types of messages that you, as a system operator, will send:
► Informational These messages do not require a reply.
► Inquiry An inquiry message requires a reply. It may also contain information.
Structure Types of Message
• Predefined messages
• Impromptu message
Predefined Messages
• Commonly used messages.
• Messages stored in message file(s).
Example – Predefined Message
Additional Message Information
Warning 10
Error 20
Severe Error 30
Device Integrity 70
System alert 80
Action 99
Impromptu Messages
• Free-form communication between one or more
persons.
• SNDMSG (Send Message).
• SNDBRKMSG (Send Break Message).
Message Delivery
Message Queue
Message Queue is an object that holds the messages just is like a mail box for messages
sent to a user. Each workstation has a message queue with the same name as the device
description name. Each user has a message queue with the same name as the user
profile name, and the system operator has a message queue named QSYSOPR.
Working With Message Queues
Work with Message Queues (WRKMSGQ)
Message
Opt Queue Library Text
Message
Opt File Library Text
QALRMSG QSYS
QBASMSG QSYS
QBMGMSGF QSYS
QCBLMSGE QSYS COBOL RUN TIME MESSAGE FILE
QCEEMSG QSYS
QCPFMSG QSYS
QCWXMSG QSYS CUBE-3 MESSAGE FILE
QC2MSGF QSYS ILE C RUN TIME MESSAGE FILE
QDFUMSG QSYS
More...
Parameters for options 1, 2, 5, 12 and 13 or command
===> __________________________________________________________________
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Display names only
F12=Cancel F16=Repeat position to F17=Position to F24=More keys
Break Inquiry Message
Display Program Messages
F3=Exit F12=Cancel
Selecting a Predefined Message
Work with Message Descriptions
System: BIGBLUE
Message file: QCPFMSG Library: QSYS
Position to . . . . . . . Message ID
System: BIGBLUE
Message ID . . . . . . . . . : CPF2817
Library . . . . . . . . . : QSYS
System: BIGBLUE
Message ID . . . . . . . . . : CPF2817
Library . . . . . . . . . : QSYS
Message ID . . . . . . . . . : CPA4002
Message file . . . . . . . . : QCPFMSG
Library . . . . . . . . . : QSYS
Decimal Vary
Field Data Type Length Positions Length Dump
&1 *CHAR 10 *NO
&2 *CHAR 10 *NO
&3 *CHAR 10 *NO
&4 *BIN 2 *NO
&5 *CHAR 10 *NO
&6 *CHAR 10 *NO
&7 *CHAR 0 *NO
&8 *CHAR 0 *NO
&9 *CHAR 0 *NO
&10 *CHAR 0 *NO
More …
Press Enter to continue.
F3=Exit F12=Cancel
Message Related Commands
● Create and change messages queues (CRTMSGQ, CHGMSGQ, WRKMSGQ).
● Change message descriptions (CHGMSGD).
● Remove message descriptions (RMVMSGD).
● Create message files (CRTMSGF).
● Delete message files (DLTMSGF).
● Add message descriptions (ADDMSGD).
● Send impromptu messages (SNDMSG, SNDBRKMSG).
● Display messages and print messages descriptions (DSPMSG, DSPMSGD,
WRKMSGF).
● Add default replies for predefined messages using the system reply list
(WRKRPYLE).
Message Menu
MESSAGE Messages
System: BIGBLUE
Select one of the following:
1. Send a message
2. Send a break message
3. Display messages
4. Display system operator messages
5. Send a network message
6. Work with message queues
7. Create a message queue
8. Work with message descriptions
Selection or command
===> ______________________________________________________________________________
_____________________________________________________________________________________
Additional Parameters
Bottom
F3=Exit F11=Remove a message F12=Cancel
F13=Remove all F16=Remove all except unanswered F24=More keys
SNDBRKMSG Command Screen
Send Break Message (SNDBRKMSG)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Sending Messages to Special Users
• The SNDMSG and SNDBRKMSG commands
can send to,
• TOUSR or TOMSGQ Parameter values:
– *SYSOPR - system operator
– *ALLUSR - all users
– *ALLACT - all users currently signed on (NOTE:
NOT SNDBRKMSG command)
– *ALLWS - all workstations
Ways to Receive Messages
Message Display
Message Display – Break Mode
Inquiry Message Reply
System Messages Reply
Deletion of Messages