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




Understood Duane
in my case the program was reading a subfile by relative record number
until not %found within MANY dou not %found
Its the not %found condition that creates the CPF5020 and as this is in a
MONOLITH of a program, it was easier AND FAR less time consuming to use the
RMVJLMSG command
An analysis of this program to determine how a complete re-write is
definitely NOT in the cards, much as I would love to do it
Sometimes using spit and duct tape to fix something rather than draw new
blueprints is ALL you are allowed to do

Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill



"Christen, Duane"
<Duane.Christen@P
AETEC.com> To
Sent by: RPG programming on the IBM i /
rpg400-l-bounces@ System i <rpg400-l@xxxxxxxxxxxx>
midrange.com cc

Subject
10/07/2010 03:41 RE: Unwanted messages
PM


Please respond to
RPG programming
on the IBM i /
System i
<rpg400-l@midrang
e.com>






Florin, Alan;

Before you throw messages away you should always understand why the message
was sent. In this case Florin is probably trying to read a subfile record
that does not exist which IMO shouldn't happen. Determining why the message
is occurring and fixing that issue will solve the problem of the user
seeing the message and IMO improve the code.

Duane Christen


--


Duane Christen
Senior Software Engineer
(319) 790-7162
Duane.Christen@xxxxxxxxxx

Visit PAETEC.COM


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Alan Shore
Sent: Thursday, October 07, 2010 1:38 PM
To: RPG programming on the IBM i / System i
Cc: rpg400-l@xxxxxxxxxxxx; rpg400-l-bounces@xxxxxxxxxxxx
Subject: Re: Unwanted messages


Hi Florin
there is a command called RMVJLMSG that I have downloaded and now use
extensively to remove whatever message is wanted to be removed (in my case
CPF5020)
However, it only seems to be available from systemiNetwork The author is
named Rory Hewitt


Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill



"Florin Todor -
YYZ Concord"
<ftodor@concordtr To
ans.com> <rpg400-l@xxxxxxxxxxxx>
Sent by: cc
rpg400-l-bounces@
midrange.com Subject
Unwanted messages

10/07/2010 02:29
PM


Please respond to
RPG programming
on the IBM i /
System i
<rpg400-l@midrang
e.com>






Hello,



I have this interactive program processing a display file with a subfile;
the user enters values in the input fields (both, Control and Subfile
records). When the values are wrong, the program issues error messages (in
a subfile message record), using QMHSNDPM API, which are shown the next
time when the file is displayed. The problem is that the system issues,
also, messages, like "Subfile Record not found" followed by a "C" (for
Cancel) and the user sees this messages, too.



My question is how could I get rid of these system messages, so the user
sees only error messages directly related to the values he enters?

(Hopefully I was clear enough with my explanation...)







Thank you





Florin Todor



Programmer/Analyst





<mailto:ftodor@xxxxxxxxxxxxxxxx>



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

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