|
This sounds like what I'm looking for.
I think I'll implement this by using QCMDEXC to call a CL that does
as you suggested.
> RTVJOBA SBMMSGQ(&Q) SBMMSGQLIB(&QLIB)
> SNDMSG MSG('...') TOMSGQ(&QLIB/&Q)
This solution combines recommendations from Howard and James.
Thanks Brian.
Dave
PS Thanks also to Huber for his reply. As much as I'd like this to be
just a
hypothetical example, this is how it really is.
Huber wrote:
I hope you do all the possible plausibility checking in the calling
program, and Mr.
Prowak's example is just a example and not the real program!
----------
> From: Brian.Johnson@helpsystems.com
> To: MIDRANGE-L@midrange.com
> Subject: Re: sending an error message back to a user
> Date: Wednesday, February 10, 1999 12:46 PM
>
>
>
> You could send the message to the queue specified in the MGQ() parameter
of
> the SBMJOB command:
>
> RTVJOBA SBMMSGQ(&Q) SBMMSGQLIB(&QLIB)
> SNDMSG MSG('...') TOMSGQ(&QLIB/&Q)
>
> The default for SBMJOB is MSGQ(*USRPRF), so the message will be sent to
the
> message queue specified in the user profile of the submitter (assuming
the
> submitting program uses the default for MGQ()).
>
> Brian Johnson
> Help/Systems, Inc.
> brian.johnson@helpsystems.com
> www.helpsystems.com
> (612) 563-1627
>
>
>
>
>
> uucp@UUCP1.MCS.NET on 02/10/99 09:00:30
>
> Please respond to MIDRANGE-L@midrange.com
>
> To:
> cc: (bcc: Brian Johnson/HelpSystems)
>
> Subject: sending an error message back to a user
>
>
>
>
> Hi,
> I need to send an error message back to a user from a batch job.
> ..
>
>
>
>
>
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
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.