(Rafael Victoria-Pereira) How do you calculate a total amount based on detail records in RPG? You probably read each record, add the respective amount to a work variable, and move on to the next record, until the file (or subset of records) ends.
Read More - Register for Free Membership