I'm thinking anal glands. My dog's anal glands act up once in a while and he licks and licks! He has never scooted his bum on carpet though! They say that is a for sure sign, but my dog has never done it! Good luck at the vet today! Keep us posted!!
Never mind the dogs, beware of the owner!!!