Posts Tagged ‘ sas programming ’

Sorting data in SAS: can you skip it?

February 4, 2016
By
Sorting data in SAS: can you skip it?

TL;DR The next time that you find yourself writing a PROC SORT step, verify that you're working with the SAS Base engine and not a database. If your data is in a database, skip the SORT! The details: When to skip the PROC SORT step Many SAS procedures allow you

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Sorting data in SAS: can you skip it?

Group processing in SAS: The NOTSORTED option

February 1, 2016
By
Group processing in SAS: The NOTSORTED option

Novice SAS programmers quickly learn the advantages of using PROC SORT to sort data, followed by a BY-group analysis of the sorted data. A typical example is to analyze demographic data by state or by ZIP code. A BY statement enables you to produce multiple analyses from a single procedure

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Group processing in SAS: The NOTSORTED option

Create a SAS macro variable that contains a list of values

January 18, 2016
By

Parameters in SAS procedures are specified a list of values that you manually type into the procedure syntax. For example, if you want to specify a list of percentile values in PROC UNIVARIATE, you need to type the values into the PCTLPTS= option as follows: proc univariate data=sashelp.cars noprint; var

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Create a SAS macro variable that contains a list of values

Twelve posts from 2015 that deserve a second look

January 11, 2016
By

I began 2016 by compiling a list of popular articles from my blog in 2015. This "People's Choice" list contains many interesting articles, but some of my personal favorites did not make the list. Today I present the "Editor's Choice" list of articles that deserve a second look. I've grouped

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Twelve posts from 2015 that deserve a second look

Running interactive procedures in SAS Studio and SAS University Edition

December 14, 2015
By
Running interactive procedures in SAS Studio and SAS University Edition

The most recent development environment for SAS programmers is SAS Studio, which is a browser-based application. The free SAS University Edition, which includes SAS/IML software, also uses SAS Studio as a development environment. SAS Studio has a special mode for programmers who use interactive procedures such as PROC IML. (Recall

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Running interactive procedures in SAS Studio and SAS University Edition

Arrange matrices and graphs in a gridded layout

December 2, 2015
By
Arrange matrices and graphs in a gridded layout

Last week my colleague Chris Hemedinger published a blog post that described how to use the ODS LAYOUT GRIDDED statement to arrange tables and graphs in a panel. The statement was introduced in SAS 9.4m1 (December 2013). Gridded layout is supported for HTML, POWERPOINT, and the PRINTER family of destinations

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Arrange matrices and graphs in a gridded layout

Using the ODS statement to add layers in your ODS sandwich

November 23, 2015
By
Using the ODS statement to add layers in your ODS sandwich

The ODS statement controls most aspects of how SAS creates your output results. You use it to specify the destination type (HTML, PDF, RTF, EXCEL or something else), as well as the details of those destinations: file paths, appearance styles, graphics behaviors, and more. The most common use pattern is

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Using the ODS statement to add layers in your ODS sandwich

Determine whether a SAS product is licensed

November 23, 2015
By
Determine whether a SAS product is licensed

Sometimes you are writing a program that needs to find out whether a particular SAS product (like SAS/ETS, SAS/QC, or SAS/OR) is licensed. I was reminded of this fact when I wrote last week's blog post about how to create a map with PROC SGPLOT. Although the SGPLOT procedure is

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Determine whether a SAS product is licensed

Proc-x is looking for sponsors!

Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com



Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.