Hi, My name isXXXXX you for using Just Answer. I am happy to help you with your concern.
Since the Xanax is helping you when you have taken it, it would be great for you to have a prescription.
However, it is illegal for a prescription to be written on line. You will have to see your doctor for a prescription. If you do not have a primary doctor you can go to a urgent care clinic.
Good luck and have a Happy New Year.