Our next RTSUG meeting will be held Wednesday, February 22nd, from 2:30-5:00 in the Cox Multi Purpose Room on the RTI campus.
WHY: For an afternoon of networking, light refreshments, and learning.
WHEN: February 22nd, from 2:30 PM to 5:00 PM.
WHERE: RTI, Cox Multi Purpose Room
| 2:30-2:50 PM | Light refreshments and networking | |
| 2:50-3:00 PM | Announcements | |
| 3:00-3:20 PM | David Abbot: "Use %WordLoop to Replace Cookie-Cutter Code" | |
| 3:20-3:40 PM | Christine Davies: "Multidimensional Arrays Used for a Quality Control Process" | |
| 3:40-4:00 PM | Break | |
| 4:00-4:30 PM | Chris Speck: "Diverse Report Generation with SAS® Dictionary Tables and PROC REPORT" | |
| 4:30-5:00 PM | Prizes - bring a business card to drop in the hat! |
David Abbot
Use %WordLoop to Replace Cookie-Cutter Code
Using SAS Macro language Word Loop Macro The fit between you and the SAS language is apt to be imperfect at times,
especially if you have experience with multiple programming languages. You want to do X but the SAS only supports Y. Bummer!
ut you don't always have to just tolerate this situation; sometimes, you can make the fit better by clever use of the SAS macro
language. In this talk I illustrate how I created the %WordLoop macro to replace cookie cutter code with code easier to maintain
and read.
Christine Davies
Multidimensional Arrays Used for a Quality Control Process
Nearly 100 tables are delivered to the National Science Foundation annually, as part of the quality control process all
row/column relationships within each table and between all tables must be verified. To automate the process, multi-dimensional
arrays were used to store table data for quality control processing. Since the array size varies depending on the table layout,
SASHELP.VTABLE was used to determine number of rows and columns for the arrays created. In addition, the SAS code generates a
text file listing out any quality control issues that need to be addressed, so that the user can easily identify what needs to
be corrected without reviewing the LOG file.
Chris Speck
Diverse Report Generation with SAS® Dictionary Tables and PROC REPORT
Automation is often the goal of SAS programming. If we could all just hit “Submit” and watch our program generate all our tables
and listings while making the right decisions at run time we could get a lot more accomplished. Of course, with the SAS macro
facility, we can already do this…up to a point. We can equip our macros with macro logic, we can feed them different parameters,
and then watch as they produce one output after another. This works great when all your outputs are based on the same dataset and
require the same number of columns.
But what if they don’t? What if you need to automate report generation from a large number of different datasets?
What if you must allow for any number of columns? Developing such a program using macro logic would be cumbersome indeed.
You would need %IF %THEN blocks for every contingency, and your program would get so bogged down in logic that you’d be better off
without automation at all.
This paper will demonstrate how SAS programmers can easily and gracefully automate Diverse Report Generation.
The methods discussed in this paper use patient profiles as a primary example and will make use of PROC REPORT and SAS
dictionary tables.
| Home |
| Membership |
| Bylaws |
| History |
| Officers |
| Meetings |
| Articles |
| Newsletter |
| Jobline |
| SASlinks |