To learn SAS programming, you need instructional or tutorial materials and a copy of SAS so you can run your SAS programs.
For information on learning SAS, see:
Beginning SAS for University Students
If you have access to SAS at work or school, the simplest thing is to run SAS programs there, on the existing SAS installation. Check with anyone who has used SAS at that installation to find out any special details you need to know about running SAS there.
If you don’t have access to SAS at work or school, you can still learn SAS. This situation is addressed in the SAS online support blog:
Learning SAS without access to the software at work or school