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



Lance Gillespie wrote:
> 
> That works fine.  Can I assume that
> you can't do last record processing
> in free?  I tried using %eof, but that
> did not work either.
> 

Right, the only way to say that you have total-calculations is by using
the Level entry of the C spec.  You could code your cycle programs like
this:

C              exsr        detail
CL0            exsr        total
 /free
      begsr detail;
        ...
      endsr;               

      begsr total;
        if *inlr;  // if you aren't using other levels L1 L2 etc, you
wouldn't need this test
          ...
        endif;
      endsr;               

You could even put the two C specs in a /copy file:

 /free
    /copy useCycle
    begsr detail;
    endsr;


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.