Prescription sleep meds?

Anyone prescribed these? Are they hard to get? I work swing shift and cannot for the life of me fall asleep when it's time to sleep. I tried melatonin and other natrual things but nothing helps. I have been taking Tylenol PM every night/day but that is not helping anymore. I didn't want to have to resort to prescription meds but it's my last thing to try. Anyone on these? Do they work? Make you feel groggy or fine when you wake up?