Process file/records until a specific total is reached.
Posted: Thu Mar 24, 2022 6:18 am
Is it possible to process a file/records until a specific total is reached?
For example, I have a file that has 100 records but I need to stop processing when a specific total, e.g., $100, has been reached or exceeded. The next file could have 25 records but same requirement......need to stop processing after $100 has been reached or exceeded.
File layout:
DD000000000000000000010000000000011000075
DD000000000000000000020000000000089000075
DD000000000000000000030000000000100000075
In this case the total was reached after the first two records, so no need to continue processing.
Let me know.
Thanks!
For example, I have a file that has 100 records but I need to stop processing when a specific total, e.g., $100, has been reached or exceeded. The next file could have 25 records but same requirement......need to stop processing after $100 has been reached or exceeded.
File layout:
DD000000000000000000010000000000011000075
DD000000000000000000020000000000089000075
DD000000000000000000030000000000100000075
In this case the total was reached after the first two records, so no need to continue processing.
Let me know.
Thanks!