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



Hi Ken,

> I'm not Brad <G> and I'm not familiar with his utility; but since I haven't
> seen a response yet (I'm on digest mode and may not have seen a response
> that he has made), I thought I'd throw in this CL code written for V4R4.
> I'm retrieving a message to use the message text on a SNDBRKMSG command.
> 
> DCL &RTVM0100   *CHAR 128
> DCL &WARNLEN    *DEC (3 0)
> DCL &WARNMSG    *CHAR  80
> 
> CHGVAR &RTVM0100 ' '
> CALL QMHRTVM (&RTVM0100 X'00000080' 'RTVM0100' 'EOP1004' +
>               'NVDISCMSG *LIBL     ' '' X'00000000' +
>               '*NO' '*NO' X'00000000')
> CHGVAR &WARNLEN %BIN(&RTVM0100 9 4)
> IF (&WARNLEN *GT 80) CHGVAR &WARNLEN 80
> CHGVAR &WARNMSG %SST(&RTVM0100 25 &WARNLEN)

Ahhh, but you're hardcoding that the message text begins in position
25.  I'm trying to do it via strictly the information returned from the
API call.  I'm trying to be just like Brad. <g>

-- 
-Jeff
The opinions expressed are my own and not necessarily 
the opinion of my company.  Unless I say so.


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.