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



<It indeed goes from the read to the print with out totaling the group. 
If it is a cycle program why is it using a read?, or did I read it
wrong?

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of simafrog
Sent: Wednesday, March 24, 2004 4:24 PM
To: RPG programming on the AS400 / iSeries
Subject: Cycle time question

HI I am working w/ a simple program that has two breaks, L2, L1. L2 is
for an customer group and L1 for item. For L1 something is not working
right. It was printing a line for each item including repetitive items
with different totals (QTY). Now they would like to show only the total
for the amount, iow, only one item per line. I then changed the code
instead of just printing each Qty for each item, it now totals the QTY.
When I have it print at Total L1, it only shows the first occurance, and
when I have it print at Detail L1, it only shows the last occurance,
thus it is leaving out all the others. I did a Debug on the L1 Total
part. It indeed goes from the read to the print with out totalling the
group. I am not sure if this can be done with the cycle the way I am
trying to or not. Or is there a third way in terms of logic that I do
not know or see. Thanks for any help in this, Rob400
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.