× 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.


  • Subject: Re: SNDUSRMSG
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Wed, 03 Jun 98 20:33:21 +1000

Hello Darlene,

I am not sure if James Kilgore has answered this for you.  His e-mail program 
sends stuff I cannot read.  It 
is obviously not simple e-mail.

This effect is due to the way the *EXT queue of the job is displayed and is 
actually documented in the CL 
Reference manual:

>       The SNDUSRMSG command allows a message of up to 512 characters of
>       first-level message text to be sent.  However, if the message is sent
>       to an external message queue (*EXT) in an interactive job, only 76
>       characters are shown on the Display Program Messages display.  If the
>       message is sent to a user's, work station's, or system operator's
>       message queue, the Display Message (DSPMSG) command allows all 512
>       characters to be displayed.

This problem is due to SNDUSRMSG sending its messages to the *EXT queue of the 
job; change it to use 
TOUSR(*REQUESTER) instead.  The message will be sent to the message queue 
associated with the interactive 
user.

Caveat: Sending an *INQ message to the *EXT queue causes the message to be 
displayed without intervention from 
the user.  Sending to a *MSGQ may cause the message to be missed by the user if:
        o The message queue is not in *BREAK mode
        o The user does not notice the message waiting indicator
        o The user does not know how to use system-request to display the 
message queue
        o If the message queue is in *DFT mode then the *INQ message will get 
the default reply

None of those items is a show-stopper but are a little more awkward to handle 
than the *EXT queue.

As a matter of interest here is a list of message types and their effect on the 
*EXT queue:

Msg Type        Valid           Display *EXT Queue
--------        -----           ------------------
*INFO           Yes             Yes
*INQ            Yes             Yes
*RQS            Yes             No
*COMP           Yes             No
*DIAG           Yes             No
*STATUS         Yes             No*
*NOTIFY         Yes             Yes
*ESCAPE         Yes             No**

*       - The *EXT queue is not displayed but the message is shown on the 24th 
line of the display
**      - The job will end abnormally

Regards,
Simon Coulter.

//----------------------------------------------------------
// FlyByNight Software         AS/400 Technical Specialists
// Phone: +61 3 9419 0175      Mobile: +61 0411 091 400
// Fax:   +61 3 9419 0175      E-mail: shc@flybynight.com.au
// 
// Windoze should not be open at Warp speed.
 

//--- forwarded letter -------------------------------------------------------
> X-Mailer: Mozilla 3.01C-KIT  (Win16; U)
> Date: Tue, 02 Jun 98 09:36:26 -0700
> From: "Tim-Bar" <timbar@blazenet.net>
> To: midrange-l@midrange.com
> Reply-To: MIDRANGE-L@midrange.com
> Subject: SNDUSRMSG

> 
> The prompt screen for SNDUSRMSG allows you to key in a very lengthy
> message. However...when the message is displayed on the screen, you only
> see one line. I know you can see it all if you move the cursor to the
> message line and press the help key. Is there any way to see all of the
> message without doing that? I'm trying to duplicate the way messages
> display from OCL. As a former data entry person, I appreciate not having
> to do extra keystrokes to get the same results. 
> 
> Thanks,
> 
> Darlene Brengle
> Norsoft, Inc.
> +---
> | 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 thread ...


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.