|
That'd work too but I often throw these into a log file as well.
And, to be honest, I've seen message files so overdone at my previous
employers, I grown an aversion to them.
I mean, I wrote a program to track their useage and found that
over 1/2 of them, and there were 1000+ of them, were used in only
1 or 2 places.
John B.
from: CRPence <CRPbottle@xxxxxxxxx>--
subject: Re: One function to Trim and Edit a number.
Since sending a message, why not stop using dynamic\impromptu
message [text], and just let the message handler feature replace the
string variable TRIMmed into a message string defined with a
specific message identifier? ADDMSGD MSGID(XYZABCD)
MSGFILE(MyMsgFile) MSG('Customer &1 not found.') VAR((*CHAR 14))
[cmd syntax is suspect\un-verified] and then send the
edited\character result as the replacement variable for send message
and retrieve message.
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.