There is no one way to learn about SAS programming. Different people learn best in different ways, or with different media. In addition, there are dozens of different ways a SAS programmer can specialize within the world of SAS programming. The questions I would ask to determine how you can most easily learn SAS programming are:
Your alternatives for learning about SAS programming include (roughly in increasing order of effort and expense):
Use any combination that works for you, and make sure you take your own learning style into account. A book or class may present the information you need, but it won’t help you if books or classes put you to sleep! Some people find that they learn faster by reading and studying example programs; others do better with a focus on ideas, rules, and theory. The approach that appeals to you is probably also the one that will work best for you.