How to do basic coding
New SAS Program, Run, Submission History, Save Program, Save As, Add to My Snippets, Print Code, Undo, Redo, Cut Code, Paste Code, Copy Code, Go To Line Number, Clear All Code, Find and Replace, Go Interactive, Format Code, and Full Screen.
The new buttons (specifically, Submission History, Add To My Snippets, and Go Interactive) will be covered later in this series.
We’ll get started with something really basic – writing code. One of the new features I’m most excited about is what I’d call multi-level intellisense. When you start typing SAS syntax, you not only get a list of code words, but you also get syntax assistance. Here I’ve typed “pro” and this is the result:
I’ve now finished typing PROC, and hit space – a complete list of available PROCs is now displayed.
I don’t want to belabour the point, but when I type “s” all the PROCs that start with that letter come up; when I’ve typed SQL, here is the procedural definition provided by SAS. Clicking on PAPERS will take you to SAS Proceedings from SGF and the regional conferences, a very handy feature indeed!
I hit space after typing SQL; and a list of all the options come up. Half of these I’ve never used, but seeing them allows me to go into the documentation and learn new functionality within the PROC that I’m using.
OK, one more. I apologise for the repetition, but I want SAS users to understand the full potential of SAS University Edition. I’ve now started writing my SQL and by typing “SE” and SELECT is displayed.
When you run correctly written SAS, the results displayed are identical to what is seen in base SAS.
You would think the log is just the log; you’d be wrong. The base SAS log is very good, but when running long or complex pieces of code, finding ERRORS or WARNINGS can be tedious and prone to missing errors that should be addressed.
In SAS University Edition, you get the full log as usual, but you are also provided with exploding menus that make finding these messages so much more efficient.
I’ve run some dummy code that I knew would generate errors as an example.
When you click on the triangle beside the Errors, the following information is displayed:
Clicking on the error message above will take you directly to the line in the SAS log with the error.
Tomorrow's post will cover managing your data in SAS University Edition, and I promise some exciting features!
This is article #2 in a six-part series. Links to all of them are below: