× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 5/11/07, Michael Rosinger <mrosinger@xxxxxxxxx> wrote:
List,

I want to send an informational message that will appear on QSYSOPR as it
would from a COBOL program executing DISPLAY UPON CONSOLE. I thought that
SNDPGMMSG was the correct command to use but I am not seeing my message
anywhere. Am I misunderstanding what SNDPGMMSG can do? Is there some other
command I should be using? TIA

SNDPGMMSG MSG('Return code did NOT get set') TOMSGQ(*SYSOPR)

it should work. if you put the SNDPGMMSG command in a simple CL and
set the CL to LOGCLPGM(*YES) you will see the execution of the command
recorded in the joblog.

something else to try is SNDPGMMSG TOUSR(*Requester). *REQUESTER
sends the message to QSYSOPR when the job is running in batch and the
user's message queue when it is running interactively.

-Steve

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.