Posts Tagged ‘ sas programming ’

Point/Counterpoint: Should a programming language accept misspelled keywords?

February 27, 2017
By

Longtime SAS programmers know that the SAS DATA step and SAS procedures are very tolerant of typographical errors. You can misspell most keywords and SAS will "guess" what you mean. For example, if you mistype "PROC" as "PRC," SAS will run the program but write a warning to the log:

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Point/Counterpoint: Should a programming language accept misspelled keywords?

The Other 27 SAS Numeric Missing Values

February 21, 2017
By

What?!?  You mean a period (.) isn't the only SAS numeric missing value? Well, there are 27 others: .A .B, to .Z and ._ (period underscore). Your first question might be: "Why would you need more than one missing value?"  One situation where multiple missing values are useful involves survey data. Suppose

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on The Other 27 SAS Numeric Missing Values

Tip for coding your color values in SAS Enterprise Guide

February 7, 2017
By
Tip for coding your color values in SAS Enterprise Guide

Colors are the subject of many romantic poems and songs, but there isn't much romance to be found in their hexadecimal values. With apologies to Van Morrison: ...Skipping and a jumping In the misty morning fog with Our hearts a thumpin' and you My cx662F14 eyed girl When it comes

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Tip for coding your color values in SAS Enterprise Guide

What colors does PROC SGPLOT use for markers?

February 6, 2017
By
What colors does PROC SGPLOT use for markers?

Suppose you create a scatter plot in SAS with PROC SGPLOT. What color does PROC SGPLOT use for the markers? If you specify the GROUP= option so that markers are colored by a grouping variable, what colors are used to represent the various groups? The following scatter plot shows the

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on What colors does PROC SGPLOT use for markers?

Stratified random sample: What’s efficient?

January 23, 2017
By

In a previous blog, Random Sampling: What's Efficient?, I discussed the efficiency of various techniques for selecting a simple random sample from a large SAS dataset.  PROC SURVEYSELECT easily does the job: proc surveyselect data=large out=sample method=srs /* simple random sample */ rate=.01; /* 1% sample rate */ run; Note:

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Stratified random sample: What’s efficient?

PUT it there! Six tips for using PUT and %PUT statements in SAS

January 16, 2017
By

For SAS programmers, the PUT statement in the DATA step and the %PUT macro statement are useful statements that enable you to display the values of variables and macro variables, respectively. By default, the output appears in the SAS log. This article shares a few tips that help you to

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on PUT it there! Six tips for using PUT and %PUT statements in SAS

Character to Numeric Conversion in SAS

January 3, 2017
By

How many of you have been given a SAS data set with variables such as Age, Height, and Weight and some or all of them were stored as character values instead of numeric?  Probably EVERYONE! Yes, we all know how to do the old "swap and drop" (rename and convert), but

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Character to Numeric Conversion in SAS

SAS Jedi Christmas – SAS 9.4 M4 DS2 Do Loop Upgrade

December 29, 2016
By

This SAS Jedi is very excited about the SAS 9.4 M4 release, which brought many wonderful gifts just in time for Christmas. So in the interest of extending the Christmas spirit, I'm going to blog about some of my favorites! I've long loved the SAS DO statement variant which allows

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on SAS Jedi Christmas – SAS 9.4 M4 DS2 Do Loop Upgrade

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.