Posts Tagged ‘ do loop ’

Yet Another Instance of DoW-Loop

August 8, 2013
By

Just got another DoW-Loop example from SAS Sample #48582: http://support.sas.com/kb/48/582.html
Read more »

Tags: , , ,
Posted in SAS | Comments Off

Example 9.31: Exploring multiple testing procedures

May 14, 2012
By

In example 9.30 we explored the effects of adjusting for multiple testing using the Bonferroni and Benjamini-Hochberg (or false discovery rate, FDR) procedures. At the time we claimed that it would probably be inappropriate to extract the adjusted p-v...
Read more »

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

continue looping

September 14, 2011
By

if you’ve ever needed to stop processing a loop under certain conditions but pick back up with the next iteration of the loop, use the continue statement; data _null_; do i = 1 to 3; ...
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

random dates

July 16, 2009
By

this is a cross posting from this sas discussion forum. assuming you know the min and max of allowable dates (01jan2005 - 30jun2009, for example), you can use random functions. data randates; mindate='01jan2005'd; maxdate='30jun2009'd; range = m...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

random dates

July 16, 2009
By

this is a cross posting from this sas discussion forum. assuming you know the min and max of allowable dates (01jan2005 - 30jun2009, for example), you can use random functions. data randates; mindate='01jan2005'd; maxdate='30jun2009'd; range = max...
Read more »

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

a missing format: QYY.

August 6, 2008
By

sas has a lot of date-related formats…roman numerals, julian dates, jewish calendars, etc.today i came across the need to format dates by quarter similar to yyq6. (as in 2008Q3), but instead qyy6. (as in Q32008.) i needed to use the dates as variable...
Read more »

Tags: ,
Posted in SAS | Comments Off

a missing format: QYY.

August 6, 2008
By

sas has a lot of date-related formats…roman numerals, julian dates, jewish calendars, etc.today i came across the need to format dates by quarter similar to yyq6. (as in 2008Q3), but instead qyy6. (as in Q32008.) i needed to use the dates as variable...
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.