Posts Tagged ‘ SAS programmer ’

Deleting global macro variables

May 7, 2018
By

Do you periodically delete unneeded global macro variables? You should! Deleting macro variables releases memory and keeps your symbol table clean. Learn how the macro language statement that deletes global macro variables and about the %DELETEALL st...
Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on Deleting global macro variables

When a variable is not a variable

April 23, 2018
By

SAS variables are variables in the statistics sense, not the computer programming sense. SAS has what many computer languages call “variables,” it just calls them “macro variables.” Knowing the difference between SAS variables and SAS macro variables...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on When a variable is not a variable

Jedi SAS Tricks: Transwarp Processing with DS2 in SAS® Viya®

April 4, 2018
By

When speed is required at scale, it's hard to beat parallel processing data in memory with DS2 and SAS® Viya® with the amazing Cloud Analytic Services (CAS)! The post Jedi SAS Tricks: Transwarp Processing with DS2 in SAS® Viya® appeared first on SAS ...
Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off on Jedi SAS Tricks: Transwarp Processing with DS2 in SAS® Viya®

SAS Enterprise Guide tools for programmers

January 15, 2018
By

If you are a SAS programmer, you may wonder why you should read this. After all isn’t SAS Enterprise Guide just for folks who don’t want to be bothered writing SAS code? SAS Enterprise Guide is just point, click, and get results, right? Well there is a...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on SAS Enterprise Guide tools for programmers

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

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

Finding your Dream Car with a little macro magic

October 25, 2017
By

Suppose you want a list of car manufacturers from the CARS dataset. Easy!  Call the %CHARLIST macro from a %PUT statement, like this: The CHARLIST macro generates a list of unique values of a selected variable from a selected dataset. So does PROC FREQ. But, if you don't need statistics, the CHARLIST

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Finding your Dream Car with a little macro magic

How to format a macro variable

October 16, 2017
By

Would you like to format your macro variables? Easy!  Just use the %FORMAT function, like this: What?! You never heard of the %FORMAT function? Of course not, cuz it doesn't exist! No problem. Just create it, like this: %macro format(value,format); %if %datatyp(&value)=CHAR %then %sysfunc(putc(&value,&format)); %else %left(%qsysfunc(putn(&value,&format))); %mend format; The %FORMAT

The post Read more »

Tags: , , , , ,
Posted in SAS | Comments Off on How to format a macro variable

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.