Posts Tagged ‘ sas function ’

SAS INTNX function ( add days, months, years, etc )

December 3, 2009
By
SAS INTNX function ( add days, months, years, etc )

The INTNX function increments dates, times, or datetimes by specific or custom intervals. Here is the basic syntax for INTNX: INTNX(interval, start, increment) The interval can be a set value like – DAY, WEEK, DTWEEK, YEAR, etc. You can also specify a custom interval. We will post more on that later. The multiple...
Read more »

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Posted in SAS | Comments Off

SAS DIM function – Counting the elements in an array

October 30, 2009
By

The DIM function returns the number of literal elements in an array. It functions against multi-dimensional arrays as well as one-dimensional arrays. 1-dimensional array example DIM(array_name) Multi-dimensional array examples DIM(m_array) -> returns the number of elements in the first dimension of the array DIM5(m_array) -> returns the number of elements in the 5th dimension...
Read more »

Tags: , , , , , , , , , , , , , , , ,
Posted in SAS | Comments Off

SAS DIF function – Comparing previous records

October 23, 2009
By

The SAS DIF function is another useful tool for operating on previous records. Lets say you want to know the difference in the last year’s revenue and this year’s revenue. Here is the data: Year          Revenue 2001           10,000 2002          30,000 2003          60,000 2004          100,000 data revenue1; set revenue; Rev_increase=dif1(revenue); run; Year          Revenue         Rev_increase 2001          ...
Read more »

Tags: , , , , , , , , , , , , ,
Posted in SAS | Comments Off

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: [email protected]

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.