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



Hello Pete,

I have been programming in RPG for about 20 years (started with RPG II in 1985). After all the discussion about Uber-programmers and what a "real" programmer is, I am little reluctant to admit that I am not "classically trained" programmer, I have learned "seat of the pants".

Me, too.

But, even if you had received a degree in RPG programming in 1985 (when you say you started) you probably would not have learned the techniques that we've been discussing here.

Learning programming is a contining thing. You don't just go to school once and then "know everything". You have to keep learning a little bit every month, since computers change a little bit every month.

The problem I am encountering is that when you page down past the end of the subfile records, the program closes. You never see the last page of records. I can't see any logic in the program that says to end, and the one place where last record IS set on and the program returns is not hit when I debug the program.
[SNIP]

The following code ends when you hit the last record of the PF. When you hit page down for the last page, you'll hit the end of the PF, so it makes perfect sense that your program would end before displaying the last page:

  C                   READ      PFAS210                   58
  C     *IN58         IFEQ      *ON
  C                   MOVE      *ON           *INLR
  C                   RETURN
  C                   END


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.