It depends on where you work. Big box retailers have to answer to shareholders. Shareholders always want decreased labor costs and therefore increased profits.
Other companies such as union hospitals have much better job security.
In the long-term no one knows about our job security. One thing is sure, increased automation, robotics, and artificial intelligence has the capacity to disrupt all workplaces. Both retail and clinical pharmacists could be upended by disruptive technologies. But how long will that take?
You can be assured that upper management in big box retail companies are hard at work trying to decrease pharmacist labor costs as much as possible. But it takes a while to change state laws, create new trends, and invest in new systems.
One game-breaking technology for pharmacies could be same day delivery. If amazon ever gets into the drugstore business with this model, it could majorly disrupt all chain retailers. Since they are already testing this model now for groceries, I can't help but think this method isn't that far off for drugs.