I have two files. One is a full detailed file named OOVSH containing Route, Day Number, Product Number and Quantity Ordered. The keys are Route, Day and Prod Number.
The other is an output totals file named WSX that will contain the summary records.
I want to read through the input detail file totaling the QUANTITY for EACH PRODUCT by ROUTE.
I'm sorta new to RPG IV and so far haven't had to combine records into a total. I know how it's done in RPG II as I have that code but I'm rewriting the program in IV and need some help.
If someone could post some "rough code" outlining how this is done in RPG IV it would very much appreciated.
Thank you.
The other is an output totals file named WSX that will contain the summary records.
I want to read through the input detail file totaling the QUANTITY for EACH PRODUCT by ROUTE.
I'm sorta new to RPG IV and so far haven't had to combine records into a total. I know how it's done in RPG II as I have that code but I'm rewriting the program in IV and need some help.
If someone could post some "rough code" outlining how this is done in RPG IV it would very much appreciated.
Thank you.