Posts Tagged ‘ sas programming ’

Jedi SAS Tricks: Pattern Search in DS2

December 5, 2017
By

Finding a pattern like a phone number or national ID number embedded in text can be difficult and time consuming. The traditional DATA step has a family of functions (collectively referred to as PRX functions) that allow using Perl regular expressions ...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Jedi SAS Tricks: Pattern Search in DS2

How to scrape data from a web page using SAS

December 4, 2017
By
How to scrape data from a web page using SAS

The internet is rich with data, and much of that data seems to exist only on web pages, which -- for some crazy reason -- are designed for humans to read. When students/researchers want to apply data science techniques to analyze collect and analyze that data, they often turn to

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to scrape data from a web page using SAS

Learn more about SAS Viya with resources from SAS Education

November 28, 2017
By

SAS Viya is an exciting addition to the SAS Platform, allowing you to conduct analysis faster than ever before and providing you the flexibility to utilize open source technologies and generate insights from data in any computing environment. The blog ...
Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Learn more about SAS Viya with resources from SAS Education

Computing a date from the past (or future) with SAS

November 21, 2017
By
Computing a date from the past (or future) with SAS

Social media has brought anniversary dates to the forefront. Every day, my view of Google Photos or Facebook shows me a collection of photos from exactly some number of years ago to remind me of how good things were back then. These apps are performing the simplest of date-based math

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Computing a date from the past (or future) with SAS

Simple Proc Print trick for grouped data

November 10, 2017
By

Here's a Proc Print trick for grouped data. Suppose your data is divided into groups, such as males and females. You could sort by the grouping variable before printing, like this: Suppose you want to better emphasize the groups. You could add a BY sta...
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Simple Proc Print trick for grouped data

How to format rows of a table in SAS

November 8, 2017
By
How to format rows of a table in SAS

A SAS programmer wanted to display a table in which the rows have different formats. An example is shown below. The programmer wanted columns that represent statistics and rows that represent variables. She wanted to display formats (such as DOLLAR) for some variables—but only for certain statistics. For example, the

The post Read more »

Tags: ,
Posted in SAS | Comments Off on How to format rows of a table in SAS

What is a factoid in SAS?

November 6, 2017
By
What is a factoid in SAS?

Have you ever seen the "Fit Summary" table from PROC LOESS, as shown to the right? Or maybe you've seen the "Model Information" table that is displayed by some SAS analytical procedures? These tables provide brief interesting facts about a statistical procedure, hence they are called factoids. In SAS, a

The post Read more »

Tags: ,
Posted in SAS | Comments Off on What is a factoid in SAS?

Evaluate a function by using the function name in SAS/IML

November 1, 2017
By
Evaluate a function by using the function name in SAS/IML

A SAS/IML programmer asked whether you can pass the name of a function as an argument to a SAS/IML module and have the module call the function that is passed in. The answer is "yes." The basic idea is to create a string that represents the function call and then

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Evaluate a function by using the function name in SAS/IML

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.

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
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.