We’re smarter together. Learn from this collection of community knowledge and add your expertise.

How to get started with SAS University Edition - Part 2

by Super Contributor on ‎01-29-2015 08:29 PM - edited on ‎10-05-2015 03:14 PM by Community Manager (1,132 Views)

How to do basic coding


  • Go to http://localhost:10080This will take you to the Info Center, where you do updates.
  • Click the SAS Studio button to get to Studio or use http://localhost:10080/SASStudio/.
  • Once SAS is loaded, you will see a screen that is both familiar and yet different. The buttons along the top are, in order:


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.



Well get started with something really basic writing code.  One of the new features Im most excited about is what Id 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 Ive typed pro and this is the result:



Ive now finished typing PROC, and hit space a complete list of available PROCs is now displayed.



I dont want to belabour the point, but when I type s all the PROCs that start with that letter come up; when Ive 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 Ive never used, but seeing them allows me to go into the documentation and learn new functionality within the PROC that Im using.



OK, one more.  I apologise for the repetition, but I want SAS users to understand the full potential of SAS University Edition.  Ive 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.



The Log


You would think the log is just the log; youd 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.



Ive 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:


Your turn
Sign In!

Want to write an article? Sign in with your profile.

Looking for the Ask the Expert series? Find it in its new home: communities.sas.com/askexpert.