×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




To reaffirm Raul's advice, you could have tweaked your program slightly to READ into a Data Structure as follows:

     FSLSMONTHS IF   E           K DISK

     D APR25           S               D   INZ(D'2017-04-25')
     D JAN31           S               D   INZ(D'2017-01-31')
     D FEB04           S               D   INZ(D'2017-02-04')
     D FEB05           S               D   INZ(D'2017-02-05')
     D EOFIND          S               N

     D SLSMONTHSDS     DS                  LIKEREC(SLSMONTHR)

     C                   SETON     LR
     C     JAN31         SETGT     SLSMONTHS
     C                   READ      SLSMONTHS     SLSMONTHSDS
     C                   EVAL      EOFIND = %EOF(SLSMONTHS)
     C     FEB04         SETGT     SLSMONTHS
     C                   READ      SLSMONTHS     SLSMONTHSDS
     C                   EVAL      EOFIND = %EOF(SLSMONTHS)
     C     FEB05         SETGT     SLSMONTHS
     C                   READ      SLSMONTHS     SLSMONTHSDS
     C                   EVAL      EOFIND = %EOF(SLSMONTHS)
     C     APR25         SETGT     SLSMONTHS
     C                   READ      SLSMONTHS     SLSMONTHSDS
     C                   EVAL      EOFIND = %EOF(SLSMONTHS)
     C                   RETURN

- then you would have been able to track all of the data in debug. Just a thought for the future.

Brian.

On 07/01/2026 22:31, James H. H. Lampert via RPG400-L wrote:
On 1/7/26 2:04 PM, Raul Alberto Jager Weiler wrote:
Do you use the field from the file?
RPG does not load the fields if there are not used.

THAT WAS IT!!!!

Scatter-gather wasn't happening on any of the fields because I wasn't referencing them (yet).

Thanks. I knew that, but I'd forgotten it. Maybe it's time for me to (as George Washington so famously put it) "retire to the back-country, and live in a wigwam."

--
JHHL


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