I have claims that have are multiple lines (or records) to each claim_number. I need to add a count based on the billed amount. The highest billed per line on each claim will get a 1. Then the next highest 2 etc. Then with each new claim_number the count will need to be reset to 1. I am not sure what to do...since I rarely use SAS. Any assistance would be greatly appreciated. Thank you.