|
There are two APIs which you can use. QMHSNDPM to send a message to a program message queue and QMHSNDM to send to a user message queue. Both are similar in terms of parameters to be passed: Message ID - 7 characters Message file - 20 characters Message data - char * Message data length - binary 4 Message type - 10 char for both APIs then for QMHSNDPM Call stack entry - NORMALLY char 10 Call stack counter - bin 4 - NORMALLY set to 0 Message key - char 4 Error - char * then for QMHSNDM List of message queues - Char array of 20 No of message queues - bin 4 Reply message queue - cha r20 Message key - char 4 Error - char * So for example if you wished to send an informational message ABC1234 which had a sub var in it of 10 characters to *EXT, then you would use the QMHSNDPGM API, message ID - "ABC1234", message file - "MYMSGF MYLIB", message data - "MYMSGDTA", message data length - 10, message type - "*INFO", call stack entry - "*EXT", call stack counter - 0, message key - blanks, error - use standard API error structure.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.