Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- open file
- read first record
- perform until eof
- move countryName to countryNameWS
- move 0 to countryTOtal
- perform until countryName IS NOT countryNameWS or EOF
- move customerName to customerNameWS
- move 0 to custTotal
- perform until custName IS NOT custNameWS or countryName IS NOT countryNameWS or EOF
- add sales to custTotal
- read next record
- end-perform
- //break in customer(Name)
- display custNameWS & custTotal
- add custTotal to countryTotal
- end-perform
- //break in country
- dispaly countryNameWS & countryTotal
- end-perform
- close file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement