Please, in the future, post a topic in one place so that the discussion can stay in one place.
Have you had a follow-up visit with the ER physician or was this an 'open ended' discharge?
What instructions, if any did you receive upon discharge? Was Xanex prescribed just to get you 'over the hump'?
Xanex is a powerful med and I agree that it shouldn't be a maintenance prescription. There are better drug choices available for that.
If you are presently dealing with panic and anxiety, you should be receiving further instructions from the doctor. Consult your discharge paperwork.
Xanex is not generally a maintenance medication and they may have sent you home with a 30-day supply. How were you instructed to use them? As needed? What comes after? Is there follow-up? Is your primary physician aware and what do they think?
I don't have a better answer, because I don't know your present situation. The doctor is the best person to consult about this. Their phone # should be on the discharge paper, it may be on the prescription bottle or call the hospital.
Best of luck to you.