Florin, Alan;
If I came across as condescending or something I didn't intend to. I just wanted warn you about throwing messages away willy nilly without knowing their underlying cause.
Florin;
I'm don't know how your application interfaces with the user or what the intended result is so offering an example wouldn't help much. If you explain a little about what your interface is trying to do would help.
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 Florin Todor - YYZ Concord
Sent: Thursday, October 07, 2010 3:11 PM
To: RPG programming on the IBM i / System i
Subject: RE: Unwanted messages
Duane,
I 100% agree with you and believe me, I try hard to avoid that, but...
The idea is that I have this subfile with, let's say, maximum 20 records. There are only five populated, but they are not necessary one after the other. Could be blank records intercalated (because the user deleted them, for example); how am I going to get all the non-blank records? I issue a CHAIN opcode and, when the record is blank ("not
found") I skip it; but the system issues the "Subfile record not found"
message (even worse, two times for one blank record).
Probably it is a better way to accomplish this and I would be very happy to learn something....
Thank you
Florin Todor
Programmer/Analyst
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Christen, Duane
Sent: Thursday, October 07, 2010 3:34 PM
To: RPG programming on the IBM i / System i
Subject: RE: Unwanted messages
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.
--
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.