

Please see Changes to the default output in SAS 9.3 for more information about these changes, and for instructions on how to change this setting. As of SAS version 9.3, output is created as HTML files. Note: Prior to SAS version 9.3, output was written to the Output window as "plain text". You must copy and paste the text into a word processing program, or save the output file as a text file and open it in a word processing program in order to edit it. Text displayed in the Output window is not editable. It is initially hidden behind the Log and Editor windows, but can be viewed by clicking on the tab at the bottom of the SAS environment. The Output window displays the printable results of any analysis you submitted in your program. This will ensure that you do not miss an Error, Warning, or Note. Errors appear when SAS can not execute the program statements you told it to run.Īlways check your Log window every time you run a program or a piece of a program. Warnings indicate when SAS found potential issues with the data or task, but was still able to run the code.
#Using pmenu sas code#
Notes are generally benign messages that confirm that your code was successfully executed. Notes appear in blue, Warnings appear in green, and Errors appear in red. The Log window uses color-coded text to communicate issues. If there is an error in your code (or if SAS encounters a problem while trying to run your code), it will report error messages or warnings in the Log window. Specifically, the Log window will show each line of code that has been executed, how long it took to execute, and what the result was. This information can be extremely useful for troubleshooting problems with SAS: not all SAS installations have the same features, so if you're trying to execute a procedure and are receiving messages like "procedure not found", this is where you'll want to look first.Īs you use SAS, the Log window will report the success or failure of any SAS programs or code you execute. When you first launch SAS, the Log window will show details about the version of SAS you have installed, the system it's running on, and what SAS products you have licensed. The Log window is one of the most important tools you have to troubleshoot problems in SAS! This is where error messages and warnings appear that can help you troubleshoot when a program isn’t working. Note that if you don’t want your program to have color-coding, you can open a Program Editor window instead by going to the menu bar and clicking View > Program Editor. SAS also warns you if a statement is invalid or out of place by changing the text color to red. This will help you know if what you are typing conforms to SAS syntax rules. The default Editor window, called the Enhanced Editor, automatically recognizes special keywords in your program and uses color to highlight them.
#Using pmenu sas series#
A program is a series of commands (or statements) that tell SAS what actions to do and how to do them. The Editor window is where you create and edit your SAS program. Using libraries is an important part of working with data in SAS, so we recommend checking out our tutorial on SAS Libraries. The data table will appear in the SAS environment. Just locate the dataset and double-click on it. Once a dataset has been referenced with a library name, it can be viewed via this window. Clicking on any of these icons will open that library, where you can browse the data files stored in that library. If you define any other SAS libraries during your session, those will appear in this window as well.

When you first open SAS, the six default libraries - Maps, Mapsgfk, Mapssas, Sashelp, Sasuser, and Work - are visible. If you double-click on it, you will see icons that look like file cabinet drawers: The main icon you’ll want to note is the file cabinet icon for "Libraries". The default icons that appear in your Explorer window may differ depending on the version of SAS you’re running. The Explorer window is where you can browse and view the content in your SAS libraries, or directories where SAS data is stored.
#Using pmenu sas windows#
Let’s briefly look at these windows and the purpose of each of them.

Most options available on the Menu Bar and Toolbar are similar to other programs, but the options may be different depending on which window you have active within the SAS environment. Like most Windows-based programs, SAS has a Menu Bar and Toolbar above the windows. The Explorer, Log, and Editor windows will be immediately visible, while the Results and Output windows will be hidden. When you start SAS, five windows will be open in the SAS environment.
