Passing comma-delimited values into SAS macros and macro functions

July 17, 2019
By
Passing comma-delimited values into SAS macros and macro functions

Have you ever tried to pass comma-delimited values to SAS macro or to a SAS macro function? How can SAS distinguish commas separating parameters or arguments from commas separating parts of the values? Passing comma-delimited value as an argument to a SAS macro function Let’s say you want to extract

Passing comma-delimited...
Read more »

Write numeric and character matrices to a data set from SAS/IML

July 17, 2019
By
Write numeric and character matrices to a data set from SAS/IML

In the SAS/IML language, a matrix contains data of one type: numeric or character. If you want to create a SAS data set that contains mixed-type data (numeric and character), SAS/IML 15.1 provides support to write multiple matrices to a data set by using...
Read more »

Curious about SAS® Viya®? Discover two new free SAS Press e-books!

July 15, 2019
By
Curious about SAS® Viya®? Discover two new free SAS Press e-books!

With all the excitement around SAS’ new software architecture, SAS Viya, we often get asked the question: What is it and how can it help my company conquer our analytics challenges? Fortunately, learning more about SAS Viya has never been easier. SAS Viya extends...
Read more »

Create a discrete heat map with PROC SGPLOT

July 15, 2019
By
Create a discrete heat map with PROC SGPLOT

Heat maps have many uses. You can use a heat map to visualize correlation matrices, to visualize longitudinal data ("lasagna plots"), and to visualize counts in any two-dimensional table. As of SAS 9.4m3, you can create heat maps in SAS by using the HEATMAP...
Read more »

Visual machine learning using SAS Viya: a Graduate Intern’s perspective

July 12, 2019
By
Visual machine learning using SAS Viya: a Graduate Intern’s perspective

Are you a seasoned data scientist looking for a fast, all-inclusive machine learning solution? Curious about machine learning but have little to no programming experience? Interested in using AI to take over the world? Follow my lead and use SAS VDDML to fast track...
Read more »

SAS Press Author Derek Morgan on Timetables and Model Trains

July 10, 2019
By
SAS Press Author Derek Morgan on Timetables and Model Trains

Posted on behalf of SAS Press author Derek Morgan. I was sitting in a model railroad club meeting when one of our more enthusiastic young members said, "Wouldn't it be cool if we could make a computer simulation, with trains going between stations and...
Read more »

Find the center of each cell in a mosaic plot

July 10, 2019
By
Find the center of each cell in a mosaic plot

I recently showed how to create an annotation data set that will overlay cell counts or percentages on a mosaic plot. A mosaic plot is a visual representation of a cross-tabulation of observed frequencies for two categorical variables. The mosaic plot with cell counts...
Read more »

How to add an annotation to a mosaic plot in SAS

July 8, 2019
By
How to add an annotation to a mosaic plot in SAS

The mosaic plot is a graphical visualization of a frequency table. In previous articles, I showed how to create a mosaic plot in SAS by using PROC FREQ and how to define a template in the Graph Template Language (GTL) by using the MOSAICPARM...
Read more »

Create a custom informat in SAS

July 3, 2019
By
Create a custom informat in SAS

An informat helps you read data into a SAS data set. SAS supports more than 100 informats. The most common informats are related to dates and times and make it easy to read an input string such as 28JAN2001 and convert it to a...
Read more »

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.