From the course: SAS® 9.4 Cert Prep: Part 01 SAS Programming Essentials
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Demo: Finding and resolving syntax errors - SAS Tutorial
From the course: SAS® 9.4 Cert Prep: Part 01 SAS Programming Essentials
Demo: Finding and resolving syntax errors
- [Instructor] Syntax errors are a fact of programming life. As a programmer, it's incredibly value to be able to identify, diagnose and fix syntax errors in your code. Examples of syntax errors include misspelled keywords, unmatched quotation marks, missing semicolons and invalid options. You can catch some syntax errors such as unmatched quotation marks by paying attention to the color-coded syntax. When SAS finds a syntax error in your submitted program, a warning or error message is written in the log. Let's take a look at a program that contains some syntax errors. This program actually has three syntax errors and the color coding within the editor window helps us to recognize where those problems are. For example, the first one is daat. Data is simply misspelled. You'll notice that other keywords are in a bold blue font where daat is not. I'm not going to fix the problem yet. But let's identify the other…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.