Programming Tips 3
Your code aren't working?
Have you triple checked your code and still not getting the correct results?
You might have made one of the two common mistakes below:
Common Mistake #1: Have the data set opened while running the code
Input a b c;
1 3 4
2 7 9
12 444 123
If the TEST data set is already opened when you run the code, the data set will not show the updated results.
Remember to close your data set before overwriting it.
Common Mistake #2: Missing semi-colon
Missing the semi-colon is THE MOST common mistake beginners make when programming SAS.
This will no doubt give you an error or warning message in the Log tab.
When your code aren't working, check and see if you have made any of the mistakes above.