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


  • Subject: Re: Subfile
  • From: Anton Gombkötö <Gombkoetoe@xxxxxxxxxx>
  • Date: Tue, 27 Jun 2000 09:12:43 +0200

1.
A subfile has always unique keys, it's the subfile record number.
But i understand the problem you have. When you fill a subfile with data 
from a non-unique keyed file it's hard to find the correct record if the 
user selects a record of a group having the same key. A solution might be 
opening the file twice; once with keys to get the desired sequence of 
records on the screen, with an INFDS and retrieve the relative record 
number (RRN) of the PF, store it in a hidden field in the SFL, display it 
and access the second file via RRN-CHAIN. Not very pretty, so i prefer to 
have a unique field in the files which i can include in the key to make it 
unique. (simple counter)

2. & 3.
I prfer to send messages to my program message queue which are displayed by 
a message subfile.
see the post about sending msg's to the joblog (this is actually the same!).


At 21:08 26.06.00 -0600, you wrote:
>I've got some small doubts in Subfile:
>--------------------------------------
>
>1. Can you position the record pointer in a Un-Equal subfile.
>2. If I try to define Sub-File Error Messages and when every I try to set on
>that indicator, it displays the message by the systems hangs up like I
>displays "X  SYSTEM" and I runs in infinate loop.  Do you have any solution.
>3. How do you send a PGMMSG through RPG/400.
>
>If you have soln. pls send it.
>
>Rajen.
>
>____________________________________________________________________
>Get free email and a permanent address at http://www.netaddress.com/?N=1
>+---
>| This is the RPG/400 Mailing List!
>| To submit a new message, send your mail to RPG400-L@midrange.com.
>| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator: david@midrange.com
>+---

Mit freundlichen Grüssen / Best regards

Anton Gombkötö
mailto:Gombkoetoe@ASsoft.com

AS Software GmbH
http://www.assoft.com

Jedleseer Strasse 3
A-1210  Wien

Tel: +43 1 278 15 01-0
Fax:+43 1 278 15 01-22

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.