Again purely anecdotal from my own small sample, but I've known people taking prescription pills illegally by buying through a dealer, haven't known anyone keeping their habit going based on legitimate doctor prescriptions. Have also known dealers who had pills available - though in what quantity and from what sources I've no idea.