Posts Tagged ‘ macro ’

NOTE: Wrap-Up on Test Coverage and MCOVERAGE

January 10, 2014
By

I've spent this week describing the functionality and purpose of the MCOVERAGE system option introduced in SAS V9.3. Coverage testing is an important consideration for your testing strategy - it's important to know how much of your code has been tested...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

NOTE: Expanding Our Use of MCOVERAGE for Coverage Analysis of our Macro Testing

January 9, 2014
By
NOTE: Expanding Our Use of MCOVERAGE for Coverage Analysis of our Macro Testing

Over the last few days I've been revealing the features and benefits of the MCOVERAGE system option introduced in SAS V9.3. This system option creates a log file to show which lines of our macro(s) were executed, e.g. during our tests.Knowing that we t...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

NOTE: Making Sense of MCOVERAGE for Coverage Testing of Your Macros

January 8, 2014
By

Over the last couple of days I've been uncovering the MCOVERAGE system option for coverage of testing of macro code. Coverage testing shows which lines were executed by your tests (and which were not). Clearly, knowing the percentage of code lines that...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

NOTE: Macro Coverage in Testing (MCOVERAGE)

January 7, 2014
By

Yesterday I introduced the MCOVERAGE system option (introduced in V9.3) for capturing coverage of macro execution. This is useful in testing, to be sure you executed all lines of your macro. This may take more than one execution of your macro, with different input parameters and data.

I finished yesterday's post by showing the...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

NOTE: Macros Newness in 9.4 and 9.3 (MCOVERAGE)

January 6, 2014
By
NOTE: Macros Newness in 9.4 and 9.3 (MCOVERAGE)

The SAS macro language is almost as old as SAS itself (who knows exactly?) so you'd think the need to add new functionality would have ceased - particularly with the ability to access most DATA step functions through %sysexec. But apparently not...SAS ...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

SAS Data Driven Programming: My 4 Favorite Techniques

November 7, 2013
By

I use relatively fixed patterns in my SAS  programming life. For so called data driven programming (or dynamic programming), I used the following 4 techniques, chronologically: macro array call execute list processing for each loop For a quick demo, I will start with a simple scenario in which the data set sashelp.zipcode should be...
Read more »

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

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

List Processing With SAS (1): List Creating I

July 12, 2013
By

Suppose you have 10 datasets, literally ds1, ds2, …ds10 and you need to concatenate them all. You may first get a quick shortcut set ds1-ds10. If such list members were generated dynamically (and may hold a form like ds1a, ds2a,… ds10a) , you will probably come out a macro solution:    %macro doit;       ...
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.