× 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 Load Right to Left
  • From: "James W. Kilgore" <qappdsn@xxxxxxxxxxxxx>
  • Date: Thu, 03 Aug 2000 19:35:51 -0700
  • Organization: Progressive Data Systems, Inc.

Lewis,

Think of a subfile as a direct data base file where you are accessing it by 
record number.

Now I'm guessing that you clear your subfile then start adding records with a 
WRITE operation.

To do what you want, you want to clear your subfile, load your subfile with 
blank records (I think it's SFLINZ) then instead of just doing a WRITE, you do 
a CHAIN / UPDATE
combination to the record number you want loaded.

Let's see:
5 columns by 16 entries means, from left to right:
column 1 starts at record 1
column 2 starts at record 17
column 3 starts at record 33
column 4 starts at record 49
column 5 starts at record 65

So you would start updating the initialized records at record number 65, load 
16 records, then start the next 16 at record 49, and so on.

HTH


Lewis Libman wrote:

> I have a program and display file with subfile control.  I have 5 columns 
>across and 16 lines down.  I know I can read right to left.  HOW DO I LOAD 
>RIGHT TO LEFT?  OR CAN I????
>
> Thanks in advance.
>

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