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



> Cheers, could be a really kind if U can provide me with the
> example. Because of the urgency of the implementation,
> example could be a great help!


I'm not clear on what Al Barsa doesn't like about the suggestion - this
is what I do, but I'm happy to bow to Al's knowledge and experience if
it's something dim....

I did a CRTMSGF to create a message file in my library called TOOLMSG.

I did a MRGMSGF to move in CPX2313 from QCPFMSG, and amended it to look
like this:

                         Display Formatted Message Text

                                                             System:
CAM
 Message ID . . . . . . . . . :   CPX2313

 Message file . . . . . . . . :   TOOLMSG

   Library  . . . . . . . . . :     ROBIN



 Message . . . . :   ENDRQS     WRKJOB     DSPMSG     SNDMSG     SIGNOFF

   DSPMSG     DSCJOB     CMDENT


CMDENT is my own command to call command entry.  It just takes a single
parameter.  The command and CPP are:

CMD
PARM       KWD(DUMMY) TYPE(*CHAR) LEN(10)


PGM PARM(&JUNK)
DCL &JUNK *CHAR 10
TFRCTL QCMD
ENDPGM

You could have the CL display a screen or whatever you needed.

My initial program does an OVRMSGF of QCPFMSG to TOOLMSG.  Any messages
not in TOOLMSG will still be retrieved from QCPFMSG.  The statement is:

OVRMSGF MSGF(QCPFMSG) TOMSGF(ROBIN/TOOLMSG) SECURE(*YES)

As long as the override stays in scope, sysreq-7 gives me command entry
and sysreq 3 gives me workjob instead of dspjob.  This method is
independent of OS releases (although it would be best to check CPX2313
for a change) - I've been running the same code since V3R2.

If you have access to News400's site, a better written up version was
published under the title "Message File Frivolity" in the December 2000
issue.  The site won't let me in at the moment to give the URL.

Any questions, please ask.
Cheers
Robin



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.