SEASUG 2026 Papers - Index
59 papers. Source: SEASUG (SouthEast & Atlantic SAS Users Group) conference proceedings.
| # | Title× | Authors× | Abstract× | Keywords× | Extras | Pages |
|---|---|---|---|---|---|---|
| 1 | A Brief Introduction to DS2 | Mark L. Jordan | DS2 is a SAS programming language available in Base SAS 9.4+ and all versions of SAS Viya. The language is designed for simple, safe parallel processing using an intriguing combination of SQL and traditional DATA STEP syntax. This paper shows some of the benefits of processing in DS2, both in SAS9 and SAS Viya. With DS2, you can work with database high-precision numeric values, such as BIGINT and DECIMAL, without loss of precision. You can achieve a significant boost in processing speed by converting a CPU-bound SAS DATA STEP to DS2 for execution in base SAS. And finally, I'll demonstrate how amazingly fast the process can be when executed in CAS on SAS Viya |
proc step, sas base, parallel processing, run, sas viya, end, return, quit, sas library, set statement | 11 | |
| 2 | A Domain-Specific Computer Language for Market Monitoring: From Domain Logic to SAS Code | Eric C. Grasby, Daniel Berleant, Maria CB Gingras |
This paper presents a proof-of-concept design of a domain-specific language (DSL) for use in wholesale electric market monitoring and applies the DSL to an industry use case. Wholesale electric markets competitively dispatch power plants, while respecting the constraints of the electric grid, to minimize the cost of electricity produced. Market monitors are charged with analyzing data from these markets to screen for prohibited behavior among market participants to protect consumers from unduly high prices and to maintain the reliability of the electric grid. To fulfill their duties, market monitors must extract, transform, and analyze data from multiple sources, usually without sophisticated programming skills. Additionally, electric market data is complex and often fragmented, leading to issues that transcend simple programming problems. Together, these issues create a barrier for market monitors to efficiently and accurately complete their duties. This paper presents one viable solution to both problems: a DSL that allows a market monitor to declare the metrics that they wish to analyze and a transpiler that translates their input into valid code. This DSL leverages SAS data sets for data management and SAS procedures, DATA STEP programming, and SAS macros to perform transformations. Finally, this paper illustrates this proposed design by demonstrating how a user can use the DSL and generate SAS code to fulfill common and critical market monitoring tasks. Keywords: domain-specific language, analyst abstraction, energy market, market monitoring, transpiler |
sample, proof of concept | github | 13 |
| 3 | A Map to Success with Data Visualization Using ODS Statistical Graphics | Richann J. Watson, Louise S. Hadden |
Creating custom graphics does not have to be a daunting experience. Anyone who has produced a graph using Output Delivery System (ODS) Graphics has unknowingly used the Graph Template Language (GTL). We take you on a guided tour of how to create a truly custom graph. Our first stop starts with an illustration of a basic plot with little complexity produced with Statistical Graphics (SG) procedures. We then make a pit stop with the TMPLOUT option to help convert the simple plot to GTL. On our road to create a custom graph we need to get out our map to build a map. Our last stop of this adventure takes us to the combining of these two graphs to illustrate the power of GTL to truly customize your graphs |
data visualization, output delivery system, graph template language | 23 | |
| 4 | Applying Propensity Score Weighting to Evaluate Interventions | Faruk Muritala, Dhrubajyoti Ghosh |
Smoking during pregnancy is an established risk factor for preterm birth, yet large U.S. analyses mainly report adjusted odds ratios from regression. The effect of smoking during pregnancy on preterm birth (under 37 weeks) was estimated on the absolute risk scale in 3,259,496 singleton live births from the 2023 U.S. Natality Public Use File (97,187 to mothers who smoked), using augmented inverse probability of treatment weighting (AIPTW) with ten confounders selected from a causal diagram that documents the evidence for each arrow. The crude risk difference of 5.60 percentage points became 3.26 (95% CI 2.47 to 4.04) after AIPTW adjustment, corresponding to preterm risks of 11.6% if all mothers smoked and 8.4% if none did (risk ratio 1.39). Estimates ranged from 3.02 to 3.65 points across propensity score handling rules and covariate specifications. Overlap was limited (41% of non-smokers had an estimated probability of smoking below 0.01), and the E-value was 2.12. The estimates rest on the stated causal assumptions and on self-reported smoking. R code with a fixed seed (1234) accompanies the paper. Keywords:causal inference, propensity score weighting, doubly robust estimation, AIPTW, preterm birth, maternal smoking, birth certificate data, E-value | propensity score, proc calis, regression analysis | 21 | |
| 5 | Automated inventory reorder and sales transparency system for small retailers using deep learning | Rashad Jafarov | Small convenience retailers and independent wholesale distributors operate under tight margins where inventory misallocations severely degrade profitability. Standard manual reordering practices suffer from high inventory records, manual errors and friction losses. This paper presents an end-to-end, two- stage automated replenishment architecture. Stage 1 implements a multi-SKU demand forecasting framework comparing global machine learning models (XGBoost, LSTM) against univariate statistical baselines (SARIMAX). Predictions are combined via a dynamic Inverse WAPE (Weighted Absolute Percentage Error) Ensemble model. Stage 2 integrates automated optical character recognition (OCR) invoice parsing, closed-loop stock accounting, asymmetric top-SKU safety buffering, and discrete sleeve lot-sizing. Empirical results demonstrate that Ensemble pipeline (R² = 0.7183, test RMSE = 2.5969) outperform other models by learning cross-SKU patterns, while the Stage 2 replenishment pipeline resolves the automated weekly replenishment gap | data cleaning, stage 2 | 10 | |
| 6 | Automating aCRF PDF Page Number Population in SDTM Specifications Using SAS | Zemin Zeng | Populating the PDF Page Reference column in the Study Data Tabulation Model (SDTM) specification VariableMetadata tab is a critical but time- consuming task in clinical trial data submissions. For each SDTM variable collected on a Case Report Form (CRF), the corresponding annotated CRF (aCRF) page number must be identified and entered manually. For a typical Phase 2/3 study, the aCRF can span hundreds of pages across dozens of SDTM domains and hundreds of variables - yet only a fraction of rows in the VariableMetadata tab may have PDF Page Reference values populated at any given time, illustrating the scale of the manual effort required. This paper describes a three-step automated process using SAS to populate the PDF Page Reference column efficiently and accurately. First, the aCRF PDF is opened in Adobe Acrobat, the "Create Comment Summary" feature is used to generate a comment summary document, and the text is copied and saved as a plain text file. Second, analyze the text file and exclude irrelevant text by get_page.sas program and extract SDTM variable names and record the page number(s) on which each variable appears. Third, the SDTM specification EXCEL file is read directly using the SAS LIBNAME XLSX engine, the page number dataset is merged with the VariableMetadata sheet on variable name, and the updated specification is written back to EXCEL in place. The result is a significant reduction in manual effort, improved accuracy, and a reproducible process applicable across studies. Importantly, the process targets only CRF-origin variables - the variables that are directly collected on the CRF and therefore annotated on the aCRF |
excel, txt, sas library, proc step, crf, proc freq, sdtm domain, clinical trial | 10 | |
| 7 | Automating Git Workflows in SAS with Git Functions | Lleyton Seymour | Whether you are an independent developer or part of a larger organization, Git has become a foundational component of the modern development workflow, and SAS users are no exception. SAS users will typically interact with a Git client in one of two ways: through a command-line interface or through a point-and-click GUI. While both approaches are sufficient, when working with scheduled jobs, flows, or automated pipelines, neither is ideal. This becomes especially apparent in regulated settings where objects, such as models, may be produced by scheduled or automated workflows without a traceable history. Enter Git Functions; these functions enable developers to execute Git operations directly within their SAS code, eliminating the need for manual intervention. By embedding version control directly into SAS programs, Git Functions allow the automated tracking of model artifacts, the execution of conditional operations, and even the ability to produce structured reporting based on your commit history. This paper provides a foundational introduction to Git Functions and how they are incorporated into everyday workflows, leaving attendees with reusable approaches for automating version control in their own environments | data step, sas viya, ods html, proc step, proc sql | 10 | |
| 8 | Beyond IF THEN ELSE: Techniques for Conditional Execution of SAS Code | Joshua M. Horstman | Nearly every SAS program includes logic that causes certain code to be executed only when specific conditions are met. This is commonly done using the IF…THEN…ELSE syntax. In this paper, we will explore various ways to construct conditional SAS logic, including some that may provide advantages over the IF statement. Topics will include the SELECT statement, the IFC and IFN functions, the CHOOSE and WHICH families of functions, as well as some more esoteric methods. We'll also make sure we understand the difference between a regular IF and the %IF macro statement |
subsetting if, if-then-else, where statement, ifn, select, ifc, macro definition, sas programmer, %if-%then-%else, missing value, proc format, whichn, execution phase, macro parameter, when, proc step, macro facility | 10 | |
| 9 | Box Office Success Predictor Tool | Kaden N. Swords, Benjamin V. Hennel |
Film production decisions have long relied on industry relationships and experience rather than on data- driven evidence. This study builds a predictive model that estimates a film's probability of box -office success from its budget, genre, and the historical track record of its key contributors - actors, directors, writers, producers, and production companies. The Oracle of Bacon database, maintained by Dr. Patrick Reynolds, supplied 22,748,885 movie and television records. Television records were removed, leaving only theatrical films with a positive budget, positive revenue, and a known release date. Genres were condensed into five groups (Drama, Documentary, Family, Suspense, and Adventure) plus an Other category, and people and companies that appeared in fewer than 10 films were excluded from individual identification. Success was defined using the industry standard 2.5x rule: a film is considered successful if its revenue reaches at least 2.5 times its budget. Movies were divided chronologically, by rele ase date, into an 80% training set and a 20% testing set, so the model is always evaluated on films it has not seen. For each role and for production companies, historical weighted success rates identified the top 100, middle 100, and bottom 100 performers; all condensed genres were included. These selections, together with genre membership and log -transformed budget, we re converted into indicator variables and analyzed using a hierarchical (mixed -effects) Bayesian logistic regression, fit with variational inference. Each known person, company, or genre receives its own shrunk weight around its role's baseline, so that individuals with only a handful of films are not over - or under-trusted relative to individuals with long track records. The model achieved ROC AUCs of 0.788 on the training set and 0.639 on the testing set | logistic regression, training set, binary variable, logistic distribution, regression analysis, sample | 7 | |
| 10 | Bridging the Gap: Converting a Protocol-Level Analysis Program into a TA Template | Xiao Xiao | In a highly regulated clinical programming environment, standardized programming practices are essential for promoting quality, consistency, and reuse. Standard program templates provide a scalable approach that can be adapted across studies while maintaining alignment with company standards. This paper describes lessons learned from converting a protocol-level analysis program into a therapeutic area (TA) template and from enhancing reusable TA macros. The discussion is organized around the macro development lifecycle: define, develop, validate, and execute. It highlights practical considerations in mock-up design, such as generalization across study designs, alignment with existing standards, and clear separation of study-specific and reusable elements. It also describes key development practices, including parameterization, standardized naming, data- driven logic, robust input validation, debugging support, and comprehensive testing. Finally, it emphasizes the importance of documentation, including intended use, expected inputs, limitations, and parameter definitions, to support sustainable adoption and maintenance. Although the paper focused on a conversion effort, these foundational principles also apply to developing a TA template from scratch. By sharing these lessons learned, the paper provides practical guidance for programmers building reusable tools in regulated environments | data cleaning, macro parameter, clinical programming, macro call, proc sql, proc step | 9 | |
| 11 | Building an In-House Macro Library for C-QTc Analysis | Huei-Ling Chen, Lan Luo, Lily Zhang, Shiqi Lin, Jun Zhang |
Early oncology trials increasingly use concentration-QTc (C-QTc) analyses to link drug exposure with QT/QTc changes and assess cardiac risk. While ICH E14 provides guidance, the study Modeling and Simulation Analysis Plan (MAP) defines the assumptions and models used for the analysis. Producing tables, listings, and figures (TLFs) also requires a robust and standardized framework. This paper outlines the design principles for an in-house SAS macro library for C-QTc analyses. The same principles can also be applied to R functions or packages. The objective is to support ICH E14 compliance and streamline consistent TLF production. The macro library covers assumption check, model selection and evaluation, and prespecified secondary analysis | macro definition, macro parameter, r package, create table, model validation, data science, proc mixed, proc step, adam dataset | 9 | |
| 12 | Challenges and Opportunities in Creating Modeling-Ready Drug and Device Safety Data from Public Regulatory Sources | Shelly Hunt | Many challenges with publicly available regulatory data from the U.S. Food and Drug Administration (FDA) have been widely noted and documented, although these sources are pivotal to signal detection, pharmacovigilance, post-market surveillance, safety analytics, and risk management. FDA resources including adverse event reports, recalls, warning letters, and clinical trial information are valuable on their own, yet do not provide a complete view of the medical device or drug development lifecycles. These data exist in different repositories, formats, and access mechanisms (API, direct website download, etc.). Once obtained, significant integration barriers remain, including entity resolution challenges and hierarchical data differences. This work demonstrates how publicly available FDA and related regulatory datasets can be acquired and integrated to create a unified analytics-ready resource. A methodology for retrieving, cleansing, and joining disparate datasets using SLC Workbench is presented. Emphasis is placed on the practical challenges encountered during data preparation, including API limitations, inconsistent product naming conventions, disjointed narrative information, and lack of common join keys. Various ent ity resolution methods are explored, from traditional matching techniques to emerging LLM-assisted solutions | adverse events, entity resolution, dataset, create table, normalization, proc http, proc step, data cleaning | 21 | |
| 13 | Closing the Loop: A Portable, Metadata-Driven Framework for Automating EDC Skip Logic Cleaning Across Therapeutic Areas | Chaitanya Popuri | In a cloud-based electronic data capture (EDC) system, a critical data integrity gap may arise when sites retroactively modify trigger fields: previously entered child data can become hidden in the user interface while remaining active in database exports. This behavior creates orphaned records in which parent responses no longer support the related child data and can require labor-intensive review of exported datasets. This paper presents a closed-loop data cleaning framework that detects and remediates these anomalies using EDC metadata exports. The framework has two phases. First, an automated SAS macro ingests metadata, dynamically maps parent-child dependencies and flags orphaned records. Second, a correction utility consumes the reviewed detection output and programmatically nullifies invalid hidden data according to variable type. Deployed on two projects in different therapeutic areas, the framework scanned 2,005 variables across 62 case report forms and identified 102 complex logic issues that were confirmed through data management review. The implementation was estimated to save more than 60 hours of manual programming. Because the framework relies on consistently structured EDC metadata, adaptation between therapeutic areas requires minimal updates. Readers will learn how Metadata can support a portable, traceable process for addressing skip logic limitations and improving exported-data integrity | crf, normalization, proc sql | 5 | |
| 14 | Creating and Customizing High-Impact Excel Workbooks from SAS with ODS EXCEL | Joshua M. Horstman | Love it or hate it, Microsoft EXCEL is used extensively throughout the business world. As a SAS user, you can enhance the impact of your work by using the ODS EXCEL destination to create high-quality, customized output in EXCEL format directly from SAS. This paper walks through a series of examples demonstrating the flexibility and power of this approach. In addition to complete control over visual attributes such as fonts, colors, and borders, the ODS EXCEL destination allows the SAS user to take advantage of EXCEL features such as multiple tabs, frozen or hidden rows and columns, and even EXCEL formulas to deliver the high-impact results you and your customers want! |
excel, by group processing, proc step, xls, output delivery system, proc report, proc template, ods excel, macro variable, macro loop, do loop, sas output, macro definition, proc print | 16 | |
| 15 | Creating Wide Complex Output Tables While Keeping One's Sanity | Nat Wooding | The programmer is sometimes asked to create wide tables whose creation is more involved than doing a few simple joins and whose output can contain more than one record type, whose variables must be in a specific order, and whose variable names may not be easily handled in within a SAS program. Several methods are shown which aid in dealing with such situations. Examples will use one of the files required by the National Student Clearinghouse (NSC) Postsecondary Data Partnership (PDP) and they will primarily use DATA STEP code |
macro variable, dataset, data step, length statement, put statement, record count | 6 | |
| 16 | DOSEON: Fuzzy Matching DOSE Date Intervals ON Analysis Dates Across SAS (DATA Step, PROC SQL, SAS Macro, and PROC FCMP) | Inka Leprince, Troy Martin Hughes |
In clinical trial analysis data sets, the treatment variable DOSEON, the treatment dose at record start, was introduced in ADaM OCCDS v1.0 for use in non-ADSL ADaM data sets. DOSEON is typically derived from exposure data by determining if and when an analysis (start) date falls within a treatment dose level start-end interval. Although the definition appears simple, performing the merge of exposure data with another analysis data set is complex because the CDISC data structures do not provide a natural primary key for joining these data sets. Instead, the derivation of DOSEON requires matching a single date to a date range. This paper explores procedural and functional approaches to solving this fuzzy matching lookup operation. Procedural approaches require one or more DATA steps and/or SAS procedures, as demonstrated with PROC SQL joins, a SAS macro, and a hash object lookup within a DATA STEP. In contrast, functional approaches leverage PROC FCMP to compile a user-defined function that is called in a single SAS statement-one line of code-to achieve equivalent, efficient, reusable functionality. Finally, these functional design solutions represent the first-ever white paper published that declare a hash iterator object as a parameter (or pass a hash iterator object as an argument), and the second-ever white paper published that declare a hash object as a parameter (or pass a hash object as an argument) |
hash table, output delivery system, proc sql, proc step, hash iterator, lookup, macro definition, adverse events, proc fcmp, composite key, order by, set statement, dose, clinical trial, proc compare, do loop, dose escalation, proc sort, treatment period, date variable, hash add, key, data merging, missing value | 39 | |
| 17 | Efficiency Techniques in SAS 9.4 | Stephen Sloan | Using space and time efficiently has always been important to organizations and to programmers in general and to SAS programmers in particular. We want to be able to use our available space without having to obtain new servers or other hardware resources, and without having to delete variables or observations to make the SAS data sets fit into the available space. We also want our jobs to run more quickly both to reduce waiting times and also to ensure that scheduled job streams finish on time and that successor jobs are not unnecessarily delayed. Internal mainframe billing algorithms have always rewarded efficiency. As we move toward cloud computing efficiency will become even more important because the billing algorithms in cloud environments charge for every byte and every CPU second, putting an additional financial premium on efficiency. Sometimes we are in a hurry to get our jobs done on time, so we don't initially pay attention to efficiency, sometimes we don't know at the start of a project how much time and space our jobs will use (and the important time is the time allocated to our assignment), and sometimes we're asked to go into existing jobs and make changes that are seemingly incremental but can cause large increases in the amount of space and/or time that is required. Finally, there can be jobs that have been running for a long time and we take the attitude "if it ain't broke, don't fix it" because we don't want to cause the programs to stop working, especially if they're not well-documented. With a reasonably good knowledge of SAS Base, there are things we can do that can help our organizations optimize the use of space and time and run more quickly without causing any loss of observations or variables and without changing the results of the programs. | proc step, character variable, numeric variable, dataset, proc means, missing value, proc contents, sas log, length statement, proc sql, rename statement | 9 | |
| 18 | Efficient Data Management in SAS: Using Macro Statements and DO Loops to Combine and Merge Datasets | Abbas S. Tavakoli, Robin B. Dail |
Monitoring vital signs such as body temperature and heart rate is critical for managing pre-term infants. Continuous abdominal (central) and foot (peripheral) skin temperature measurements enable calculation of a thermal gradient, a potential early marker of infection. Heart rate characteristics (HRC) scores also predict infection but require a specialized HeRO monitor. Our multicenter study compared thermal gradients and HRC scores in infants born before 32 weeks' gestation. A total of 364 infants were enrolled across five sites Duke (n=25), ECU (n=137), MUSC (n=31), Prisma (n=149), and UNC (n=11) under NIH/NINR grant 1R01NR017872, with IRB approval and parental consent. Each infant had thermistor probes placed on the abdomen and foot to continuously record skin temperature. Thermistor probes recorded continuous abdominal and foot skin temperatures, while temperature and HRC data were collected via a research datalogger and the HeRO monitor, then converted into EXCEL. Each infant's dataset averaged approximately 41,000 rows. Individual SAS datasets were created and merged using macro and do-loop programs in SAS 9.4, incorporating demographics and consolidating data across sites for analysis. Keywords: SAS, body temperature, infant |
do loop, dataset, excel, macro definition, macro variable | 8 | |
| 19 | Emulating libname ZIP engine for SAS | Bartosz Jabłoński | SAS offers multiple library engines that allow reading (and writing) data from local single and multiple directories, external databases, even EXCEL spreadsheets or JSON files. Additionally SAS' files interface allows the use of different devices like DISKs, PIPEs, URLs, and even ZIP files to move file based data around. The LIBNAME statement unfortunately does not allow for storing and retrieving data sets from library assigned to a ZIP file (like EXCEL or JSON). TheLibnameZIP package tries to overcome that limitation and introduces the functionality that mimics the library ZIP engine. Table of contents |
file statement, sas packages, libname statement, compress=yes, open source | github | 9 |
| 20 | FACIT-Fatigue Questionnaire Dataset Design and Endpoint Analysis in Clinical Trials | Ye Di | Patient-Reported Outcomes (PROs) are essential in modern clinical research for capturing patients' health status directly from their perspective. The Functional Assessment of Chronic Illness Therapy- Fatigue (FACIT-Fatigue) Scale is a widely used 13-item PRO instrument that measures fatigue and its impact on daily activities over the past seven days, with total scores ranging from 0 to 52 (higher scores indicating less fatigue). This paper provides a step-by-step workflow for FACIT-Fatigue analysis in clinical trials. It describes the mapping of collected questionnaire responses to SDTM QS domain, the construction of the Analysis Data Model (ADaM) ADFACIT dataset, including reverse scoring, total score derivation with proration rules for missing items, and analysis visit assignment via time-based windowing and closest visit mapping methods. Finally, the paper outlines the analytical framework for evaluating fatigue endpoints, including descriptive statistics summarizing total scores by treatment group and time point, as well as a linear mixed-effects model incorporating treatment, time, and their interaction as fixed effects with baseline score as a covariate to estimate least squares mean differences between treatment groups | clinical trial, proc means, sample, adam dataset | 8 | |
| 21 | Forecasting U.S. New-Home Months' Supply: A Multivariate SARIMAX Analysis of Housing Starts and Mortgage Rates | Matilda Kumi, Mostafa Zahed |
In the United States, the availability of housing has become a growing concern among households, since fluctuations in new-home months' supply affect affordability and market stability. This study examines the Monthly Supply of New Houses (MSACSRNSA), a not-seasonally-adjusted months'-supply ratio, using a two-stage Box-Jenkins approach. A univariate analysis of 757 monthly observations, January 1963 to January 2026, identifies a SARIMA(1,1,0)×(1,1,1)₁₂ model without a constant term as the most robust order; refit on the common 1971-2026 sample used for later comparison, this specification achieves an AIC of 1303.46. A twelve-month holdout evaluation of this exact model, refit on the training data, produced MAE = 0.628, RMSE = 0.717, and MAPE = 7.02%. The baseline model was then extended to a multivariate SARIMAX framework, to test whether external economic conditions improve model fit. Two exogenous variables were introduced: New Privately -Owned Housing Units Started (HOUST), a seasonally adjusted annual rate, and the 30-Year Fixed Rate Mortgage Average (MORTGAGE30US). The common sample across all three series spans April 1971 through January 2026: 658 monthly observations before differencing, and 645 effective observations after the regular and seasonal differencing used in estimation. Both regressors were first-differenced; the HOUST level series showed strong persistence, while ADF testing confirmed stationarity after first differencing for both HOUST and MORTGAGE30US. Each predictor was tested indivi dually first, then combined into one joint SARIMAX model. Differenced housing starts significantly improved model fit on their own (p = 0.0051, AIC = 1297.98). Differenced mortgage rates did better on their own (p < 0.0001, AIC = 1288.13, SBC = 1306.00) | sample, residual analysis, correlation, seasonal difference, time series analysis, regression analysis, interest rate, proc arima, proc step, proc sql | 15 | |
| 22 | From Annotated CRFs to Define Specifications: A SAS Macro Automation Framework | Bharath Pappula | The preparation of Define specifications from annotated case report forms (aCRFs) is a time -consuming activity that commonly involves several manual steps, including identification of SDTM domains and variables, population of specification metadata, development of value-level metadata, and assignment of source CRF page references. This repetitive process involves repeated transcription of information already available within the aCRF. This paper presents a SAS macro-based framework for automating the preparation of an initial Define specification draft from an annotated CRF. The framework uses the aCRF annotation data in FDF format together with the SDTM Implementation Guide and Controlled Terminology as reference inputs. It extracts annotated domains and variables, identifies parent, supplemental qualifier, associated person, and custom domains, validates detected domains, and populates dataset- and variable-level specification metadata. The framework also derives annotated CRF page references and automatically assigns applicable codelists to standard variables. In addition, QNAM- and TESTCD-based annotations are used to generate value-level metadata, with Controlled Terminology providing the corresponding controlled values and labels. The resulting information is organized into standardized Datasets, Variables, and ValueLevel worksheets that support downstream Define-XML development. A pilot time comparison was used to assess the practical impact of the framework by comparing the time required for first-pass specification preparation using the conventional manual approach versus the automated workflow. The comparison reflects first-pass preparation and does not include final standards review or study-specific programming decisions | sdtmig, annotated crf, excel, proc step, data cleaning, proc sql, controlled terminology, ods excel, call execute, proc report, where statement, output delivery system, response variable, proc import, label statement, macro definition, macro loop, normalization, proc contents, %if-%then-%else, reference data, macro variable | 33 | |
| 23 | From One-Time Standardization to Automated ETL: A Metadata-Driven Approach in SAS | Divya Gadde | After a large administrative dataset has been standardized, an important question remains: how can that standardized structure be maintained as new data arrive each month? This becomes particularly challenging when monthly vendor files contain millions of records but are accompanied by limited structural metadata. Without a consistent method for evaluating incoming files, structural differences can require repea ted manual review and may introduce unintended changes into the master dataset. This paper outlines a metadata-driven approach in SAS for managing recurring, large-scale administrative datasets. The framework establishes an internal metadata standard from the initial master dataset and uses it as the reference for subsequent monthly delta files. The metadata standard includes variable names, data types, and approved character lengths, with a controlled 10% buffer applied to character variables to accommodate reasonable growth while preserving structural consistency. Delta files are ingested into SAS using vendor-provided maximum character widths to prevent data truncation. Each monthly file is then profiled to determine observed character lengths, and its structure is evaluated against the approved metadata standard. Files that conform to the standard proceed through the ETL process, while structural discrepancies are isolated for review before integration into the master dataset. This approach provides a repeatable method for managing recurring data deliveries, identifies structural discrepancies early, and maintains a consistent master dataset. It also supports more efficient and scalable processing by replacing repeated file-by-file structural decisions with a standardized validation process | character variable, data cleaning | 6 | |
| 24 | From SAS to R: Five Essential Clinical Graphics Every SAS Programmer Should Know | George Wu, Jaime Yan, Jessie Yan |
Clinical reporting programmers have spent years mastering ODS Graphics - the SG procedures and the Graph Template Language - to build the figures reviewers expect: waterfall, swimmer, Kaplan-Meier, forest, and spider plots. As open-source tooling becomes a first-class citizen in clinical study reporting, the same programmers are increasingly asked to reproduce those figures in R. The good news is that most of what you already know transfers directly; only the vocabulary changes. This paper is a practical, side-by-side field guide for the SAS programmer moving into R. Starting from a familiar PROC SGPLOT mental model, it introduces the grammar of graphics used by ggplot2 and maps each SAS concept - plot statements, GROUP=, REFLINE, PANELBY, attribute maps, axis tables - onto its ggplot2 equivalent. It then walks through five essential clinical graphics, showing working SAS and R code for each, every example built from the same simulated CDISC ADaM-style datasets (ADSL, ADTR, ADRS, ADTTE), along with the packages that do the heavy lifting (ggplot2, survival, ggsurvfit, forestploter, and ggswim) and the pitfalls that trip up first-time converts. Attendees will leave with a reusable side-by-side translation table and copy-ready SAS and R code for all five figures, together with the simulation programs and ADaM-style example data used to produce every figure in this paper. No prior R experience is assumed - only a working knowledge of ODS Graphics. The goal is not to abandon SAS, but to become bilingual |
proc step, proc sgplot, sas programmer, change from baseline, proc sgpanel, waterfall chart, kaplan-meier plot, proc phreg, data cleaning | 13 | |
| 25 | Hands-On Reporting in R with the *reporter* Package | David J. Bosak | The reporter R package has recently seen a surge of interest by companies looking for a PROC REPORT and ODS type reporting system for R. This package fits the bill. The reporter package can create almost any kind of report: demographics, adverse events, patient profiles, figures, listings, survival analysis, etc. The package supports multiple levels of spanning headers, page bys, nested stubs, page breaking, page wrapping, and much more. And it can output the results in five different file formats: TXT, HTML, DOCX, RTF, and PDF. The reporter package is by far the most comprehensive reporting system in R. This hands-on workshop will take you from the basics to some of the most advanced features of the package. By the end of the workshop, you will be able to create reports in R with ease and c onfidence. The workshop is being presented by David J. Bosak, the creator of the package |
reporting, proc report, r package, adverse events, survival analysis | reporter | 11 |
| 26 | Informal Introduction to Hash Tables, or How to Get Along with Associative Arrays | Bartosz Jabłoński | Even though hash tables have been with us since SAS○R9.1, unusual, for a "good old SAS language", the syntax of hash tables objects can be uncomfortable, hard to accept or hard to get used to for some programmers. The purpose of this article is to convince those people that advantages of the hash tables facility overcome the vague disadvantages by three orders of magnitude. The article provides a general overview and analogies between hash tables and SAS arrays, highlighting the syntax of the hash object, and presents some use cases. Table of contents | hash table, cpu time, execution phase, proc step, data step, proc sort, set statement, temporary array, hash of hashes, proc sql, array | 54 | |
| 27 | Le petit SAS package - a workshop about the "Hello World" SAS package | Bartosz Jabłoński | Paraphrasing Antoine de Saint-Exupéry's "The Little Prince": It was then that the SAS package appeared. - "Good morning," said the SAS package. - "Good morning," the little SAS programmer responded politely, although when he turned around he saw nothing. - "I am right here," the voice said, "under the apple tree." - "Who are you?" asked the little SAS programmer, and added, "The way you help solving SAS problems is very pretty to look at." - "I am a SAS package," said the SAS package. - "Come and play with me," proposed the little SAS programmer. "I am so unhappy." - "I cannot play with you," the SAS package said. "I am not tamed." - "Ah! Please excuse me," said the little SAS programmer. But, after some thought, he added [...] "I am looking for friends. What does that mean - 'tame'?" - "It is an act too often neglected," said the SAS package. "It means to establish ties." - "'To establish ties'?" - "Just that," said the SAS package. "To me, you are still nothing more than a SAS programmer who is just like a hundred thousand other SAS programmers. And I have no need of you. And you, on your part, have no need of me. To you, I am nothing more than a code snippet like a hundred thousand other snippets. But if you tame me, then we shall need each other. To me, you will be unique in all the world. To you, I shall be unique in all the world..." The SAS package gazed at the little SAS programmer, for a long time. - "Please - tame me!" he said. - "I want to, very much," the little SAS programmer replied. "But I have not much time. I have friends to discover, and a great many things to understand." - "One only understands the things that one tames," said the SAS package. "Men have no more time to understand anything. They buy things all ready made at the shops. But there is no shop anywhere where one can buy friendship, and so men have no friends any more. If you want a friend, tame me..." - "What must I do, to tame you?" asked the little SAS programmer. This article is a background for a demonstration of how easy it is to tame the SAS packages building tool - the SAS Packages Framework - and become friends with SAS packages | sas packages, sas programmer, proc step, %if-%then-%else, open source | github NJSUG recording |
14 |
| 28 | Leveraging SAS to Automatically Assist with Code Reviews: An Academic Application | Rachel Winpisinger, Jonathan W. Duggins |
Code reviews are ubiquitous in any industry that employs - or trains! - programmers. In some cases, automated tools can help support reviewers by executing the program and scraping the log for controlled terminology such as error and warning messages. Programming courses in academia pose two additional challenges to an already time-consuming, complex topic: multiple submissions, often both within and across students, and frequent changes as to who is performing the code review due to turnover in instructional teams (instructors and/or grading assistants) from semester to semester. This inherent variability means creating a standardized code review process - especially one that works in a classroom or internship training setting - is quite challenging. In this paper, we present a method that employs SAS and batch files using DOS commands to create a code review workflow. We use SAS programming tools ranging from simple data cleaning viaDATAstep functions to intermediateDATAstep tools like arrays and integrate them with more advanced macro-based approaches. Results are tabulated and displayed in a color-coded spreadsheet viaPROC REPORT. The automatic code-review tool is available on GitHub from the following repository jwduggins/AutograderPublic and includes demo submissions that allow stress testing of this code-review tool. Motivation & Applications Our motivation for the creation of an automated code review tool is two-fold: student to instructor ratio and consistency. As class sizes continue to rise and education funding continues to fall, we are forced to make concessions in how we assess students and provide feedback on those assessments. It is no longer reasonable to expect an instructor or teaching assistant (TA) to review all student submissions and provide substantive feedback | if-then-else, proc step | 16 | |
| 29 | Merge with Caution: How to Avoid Common Problems when Combining SAS Datasets | Joshua M. Horstman | Although merging is one of the most frequently performed operations when manipulating SAS datasets, there are many problems which can occur, some of which can be rather subtle. This paper examines several common issues, provides examples to illustrate what can go wrong and why, and discusses best practices to avoid unintended consequences when merging | merge statement, by group processing, in=, out=, set statement, dataset, subsetting if, if-then-else, sas log, pdv, proc sql, length statement | 16 | |
| 30 | Methods and Tools for Publishing at SEASUG and Beyond-Advanced Techniques | James E. Blum, Jonathan W. Duggins |
We add automation methods for including SAS code and output by building on "Methods and Tools for Publishing at SEASUG and Beyond-Basic Techniques." We provide and demonstrate SAS programs for converting .SAS files to .TEX files. As the ODS TAGSETS.COLORLATEX command is pre-production and has limited features, we provide and demonstrate SAS code to modify sizing for tabular output objects based on corresponding RTF sizing. We combine SAS code and output building strategies with LaTeX tools for automatic insertion of the converted SAS code and SAS output into the LaTeX document. All LaTeX implementations are covered using the Overleaf platform, but other LaTeX environments work as well |
character variable, sample, proc step | 18 | |
| 31 | Methods and Tools for Publishing at SEASUG and Beyond-Basic Techniques | James E. Blum, Jonathan W. Duggins |
For programmers, publishing papers or other documents may be a frustrating task. We show some methods of applying programming in LaTeX and SAS to create styles and structures that can be easily reused and revised, with the added benefit of actually looking good. We build styles for various paper elements including boxes/titles for code, output and logs (and other items). LaTeX tools for numbering sections, programs, output, and other elements inside the document are demonstrated along with making cross-references to such items which automatically update when items are moved or removed. An introduction to the ODS TAGSETS.COLORLATEX destination and the resulting sastable object is also provided. All LaTeX implementations are covered using the Overleaf platform, but other LaTeX environments work as well |
character variable, length statement, sample, proc step, sashelp | 23 | |
| 32 | NBA Betting: Are the Best Performing NBA Teams Actually Bad Bets? | Gaspar Tsai, Keira Yurashek |
As legalized sports betting continues to expand across America, understanding how betting markets interpret team performance has become increasingly important. In the National Basketball Association (NBA), traditional metrics such as win percentage and scoring efficiency are widely used to evaluate team strength, yet their effectiveness in predicting betting success against the point spread remains unclear. This study explores whether observable team performance translates into an advantage over sportsbook expectations. Leveraging historical NBA game data and betting market information from 2007-2025, this research develops a structured framework for evaluating team performance relative to the spread. By integrating performance metrics, betting context variables, and classification modeling techniques, the study shifts the focus from predicting game winners to assessing whether teams exceed market expectations. This work contributes to sports analytics by examining the relationship between team strength and betting efficiency, offering a new perspective on how performance is priced into modern sports betting markets | proc hpsplit, logistic regression | 5 | |
| 33 | One Code, Two Modes: A Convention-Driven R Reporting System for Submission-Ready Clinical TLFs | Jaime Yan, George Wu, Jessie Yan |
In a SAS shop, submission-ready formatting is a solved problem: ODS templates and macro libraries give every program the same page geometry, fonts, and titles. In R, the building blocks exist - r2rtf, rtables, ggplot2, the wider pharmaverse - but teams still assemble them by hand: Shiny apps drift from batch programs, conventions live in comments, and title metadata is maintained manually. We present a reporting system in which the same R builder functions produce the same submission - ready RTF outputs in scheduled batch production and interactive Shiny preview - one code path, two modes. Four design elements carry the system: a convention engine encodes page geometry, fonts, and formatting rules as reusable code - the R analogue of a SAS ODS/macro convention stack; a dispatcher routes typed requests to specialized builders, shrinking standalone programs to thin wrappers that preserve the one-program-one-output audit trail; a title resolver reads the same metadata database SAS programs use, with three-level graceful degradation; and figure rendering runs in isolated child processes with bounded retries, containing a Windows-specific graphics crash that R cannot catch. The system provides 16 TLF templates (6 tables, 8 figures, 2 listings), verified by execution against production study data on the validated server: 11 of 16 produce submission-formatted RTF unchanged; the five failures are data-shape adaptations, not code defects. A side-by-side SAS comparison protocol - numeric match at displayed precision, character-identical title blocks, documented exemptions - is defined, with full execution in progress. The architecture transfers to any organization building R -based clinical reporting alongside SAS |
proc sql, data cleaning, adam dataset, adverse events, proc step, box plot | 17 | |
| 34 | One-Click Study Navigation: Building a Clinical Programming Portal Using Base SAS | Pratap Singh Kunwar | Clinical programming teams often navigate multiple repositories and study-specific directory structures to find eCRF documentation, protocols, Statistical Analysis Plans, dataset specifications, SDTM and ADaM assets, source and derived datasets, define.xml packages, Study Programming Plans , outputs, logs, catalogs, and supporting documentation. As studies grow more complex, repeatedly locating these resources becomes inefficient. This paper presents a centralized study navigation portal developed with Base SAS. SAS macros, dynamic link generation, and ODS PDF transform EXCEL-maintained resource profiles into an interactive PDF with organized bookmarks and one-click links to approved study locations. The PDF provides a common entry point for resources used in clinical data collection, standards implementation, programming, validation, and regulatory delivery without copying or replacing controlled source files. The framework demonstrates how Base SAS can support operational workflows beyond data analysis by standardizing study navigation, reducing manual browsing, supporting onboarding, and enabling the portal to be reused across studies by updating the profile and regenerating the PDF. Keywords: Base SAS, ODS PDF, Clinical Programming, Study Navigation, Automation, SDTM, ADaM, Define.xml, Hyperlinks, Productivity |
sas base, excel, proc step, data cleaning, clinical programming, data science | 5 | |
| 35 | Predicting Viewership and Tracking Audience Reactions to AI-Generated Music on YouTube Over Time: A Predictive Modeling and LLM-Assisted Approach | Mohsen Pashna, Hunter Willard |
This study examines AI -generated music on YouTube from two connected perspectives: what characteristics are associated with high viewership and how audience reactions to AI -generated music change over time. For the first research question, 3,967 AI -generated music videos were analyzed using logistic regression, decision tree, random forest, and XGBoost models, followed by feature -importance and genre analyses. XGBoost provided the strongest overall predictive performance, and the results showed that content -related characteristics, especially genre, artist - mimicry or cover references, and AI-vocal references, were more important for predicting high viewership than basic metadata such as hashtags, description length, or mentions of specific AI platforms. For the second research question, 46,443 multilingual YouTube comments from 2,344 videos were analyzed using LLM -assisted theme discovery, translation, sentiment coding, and quarterly trend analysis. The results show that audience discussion gradually moved away from early fascination with realism and voice recreation toward greater attention to artist impact, ethics, consent, credit, and limitations of AI-generated music, while overall positive sentiment also declined over time. Taken together, the findings suggest that AI -generated music is moving beyond a stage of technological novelty. As technology becomes more common, success appears to depend more on the type and positioning of the music itself, while audiences increasingly judge AI-generated content based on its quality, fairness, and effects on human artists. The study therefore provides an integrated view of both the platform performance and changing audience reception of AI- generated music. Keywords: AI-generated music; YouTube; music popularity; audience reception; machine learning; XGBoost; sentiment analysis; thematic analysis; generative AI; social media analytics | logistic regression, proc hpforest, sample, regression analysis, logistic distribution, response variable, proc hpsplit | 30 | |
| 36 | Primary Drivers of FDA Complete Response Letters: Insights from a SAS - Based Analysis | Hannah Weber | Complete Response Letters (CRLs) document deficiencies identified when the U.S. Food and Drug Administration (FDA) cannot approve a New Drug Application (NDA) or Biologics License Application (BLA) in its current form. The narrative format complicates systematic analysis. This project used SAS software to structure and analyze 401 CRLs dated 2002-2026 from FDA's approved and unapproved CRL folders. These letters represent 298 FDA application numbers. Manual coding identified 915 individual deficiencies; SAS transformations produced 610 unique CRL-domain records and letter-level domain indicators. Of the 610 unique CRL-domain records, 314 (51.5%) were CMC and 147 (24.1%) were Clinical. CMC was present in 314 of 401 letters (78.3%), and 160 letters (39.9%) contained more than one deficiency domain. Co-occurrence summaries characterized both cross-domain and CMC- subtype combinations. Exploratory logistic models found no statistically significant application-type association with CMC presence, while application type and CRL year were associated with multi-domain findings. Clustered generalized estimating equation (GEE) sensitivity analyses accounting for repeated CRLs associated with the same application number produced the same point estimates with wider confidence intervals, and the multi-domain associations remained significant. The workflow produced datasets at the deficiency, CRL-domain, and letter levels, along with summaries and dashboard exports | proc step, complete response, proc logistic, sensitivity analysis, logistic distribution, logistic regression, proc sort, proc freq | 6 | |
| 37 | RegEx Reloaded: Advanced Pattern Matching Strategies for SAS Data Quality and Automation | Pratap Singh Kunwar | Regular expressions have long been available in SAS, yet many data-quality processes still depend on manual cleaning or lengthy conditional logic. This paper presents a practical progression from literal searches and basic pattern checks to validation, standardization, reusable rule management, exception reporting, and automated data-quality workflows. The examples emphasize not only how SAS PRX functions work, but also when RegEx is preferable to traditional SAS functions and how patterns can be implemented safely in repeatable production processes. Keywords: Regular Expressions (RegEx), SAS Programming, Data Quality, Data Cleaning and Automation, Pattern Matching | sas syntax, data cleaning, proc sql | 12 | |
| 38 | Reviving Institutional Knowledge: LLM-Generated Documentation for Legacy SAS Production Code | Patrick Long, Brandon Harris |
Many mature SAS shops run production code that nobody currently on staff wrote. The macros work, the output validates, but occasionally the reasoning behind programming steps and dataset variable names are not easily inferred. This paper reports a controlled comparison of three ways to regenerate that lost documentation automatically: (1) a small open-weight language model running zero-shot on a modest on- premises server; (2) that same model after a QLoRA fine-tune on paired examples of legacy programs and hand-written documentation; and (3) a frontier-scale model given structured, read-only access to SAS metadata through a small set of purpose-built tools, or "skills." In every configuration SAS can remain the system of record: the model writes JSON, and the JSON can land back into SAS data sets. Results are reported on variable coverage, macro parameter recall, data set lineage, review effort, and the metric that decides whether any of this is usable in a production environment - the rate of confident, unsupported assertions | macro parameter, proc step, proc sql, dictionary tables, dataset | 6 | |
| 39 | SAS Macro Debugging Techniques for Mere Mortals | Kirk Paul Lafler | SAS macro programming is powerful, but when things go wrong, debugging can feel complicated, frustrating, and time-consuming. This Hands-On Workshop is designed for SAS users who understand macro basics but struggle to diagnose and fix macro-related issues efficiently. Attendees will learn how to systematically debug macro programs by leveraging SAS system options, diagnostic tools, and structured troubleshooting approaches. This paper and session emphasizes real-world debugging scenarios, including resolving macro variable scope issues, identifying compilation vs. execution errors, handling quoting pitfalls, and interpreting cryptic log messages. Through guided exercises, attendees will gain practical experience using tools such as MPRINT, MLOGIC, SYMBOLGEN, and OPTIONS SOURCE2, as well as techniques for isolating logic errors, validating input parameters, and testing macro-output incrementally. At the end of this paper and session, attendees will possess a repeatable debugging framework that transforms macro troubleshooting from guesswork into a disciplined, efficient process | macro variable, macro definition, macro facility, sas log, macro put, proc step, if-then-else, macro debugging, macro quoting function, options statement, data cleaning, macro loop, %if-%then-%else | 35 | |
| 40 | Scaling SDTM Subsetting: A Simple Program-Based Reusable Template Framework for Compliant, Consistent, and Efficient Delivery | Hong Qi, Mary N. Varughese |
In clinical trials, Study Data Tabulation Model (SDTM) datasets are typically processed collectively across all cohorts within a trial to support efficient downstream activities such as data enrichment, business rule application, and ADaM dataset generation. However, regulatory submissions and interim analyses often require datasets restricted to specific indications or biomarker-defined cohorts, including both screened participants and screen failures. Manually subsetting SDTM domains, or applying macros without a consistent and compliance-focused framework, can introduce redundancy, complexities, inconsistencies, and increased validation effort. This paper presents a simple, program-based reusable template framework to automate SDTM subsetting for targeted cohorts. The approach applies standardized, domain-agnostic logic across SDTM domains (excluding Trial Design domains) while preserving submission-ready attributes. Key design principles include compliance, efficiency, consistency, and ease of implementation through a lightweight programming approach. Implementation examples from oncology studies demonstrate how the framework enables efficient, consistent, and compliant SDTM subsetting across submission scenarios | sdtm domain, proc sql, data cleaning, regulatory submission, clinical trial, proc step, adam dataset, clinical research | 6 | |
| 41 | So You Want To Be An Independent Consultant: 2026 Edition | Joshua M. Horstman | While many statisticians and programmers are content with a traditional employment setting, others yearn for the freedom and flexibility that come with being an independent consultant. While this can be a tremendous benefit, there are many details to consider. This paper will provide an overview of consulting as a statistician or programmer. We'll discuss the advantages and disadvantages of consulting, getting started, finding work, operating your business, and various legal, financial, and logistical issues. The paper has been recently updated to reflect the new realities of independent consulting in 2026 and beyond | artificial intelligence, auto insurance | 12 | |
| 42 | Streamlining Course Evaluation Reporting for Faculty Review Using PROC REPORT, ODS, and File Manipulation | Karma Brainard, Abbas S. Tavakoli |
Course evaluations provide valuable feedback; however, generating clear and accurate reports for individual faculty members and coordinators is both time-consuming and error prone. Raw course evaluation data is provided in CSV files that contain unclear variable names and duplicate records. This paper presents a streamlined solution that transforms these raw exports into standardized course and teacher evaluation reports using R for data preparation, followed by SAS 9.4 PROC REPORT and ODS for formatted output, along with automated folder and file manipulation. The approach generates collective reports and individual reports for each faculty member, all with consistent styling. The result is a reproducible workflow that can be executed each semester, reducing processing time, minimizing errors, and enhancing report readability |
macro variable, proc report, proc step, data wrangling, excel, ods pdf, proc sql, macro definition | 9 | |
| 43 | Take CoMmanD of Your Log: Using CMD to Check Your SAS Program Logs | Richann J. Watson | Regardless of the industry, part of writing a SAS program is to ensure that the log is free of any unwanted log messages. When running the program in an interactive SAS session, we can review the log as we execute the program and SAS is good about highlighting ERROR and WARNING messages using colors to draw the eye. Other types of unwanted log messages, such as INFO, uninitialized, character to numeric conversion, may not be so easily spotted. When running the program in batch, each program needs to be opened and scanned for unwanted log message, which is tedious and prone to overlooking a message. There have been several papers illustrating the creation of macros that will check the logs by parsing the logs after the programs have been executed. While these macros are great when you are running a lot of programs for a deliverable and need to check all the logs, these check log macros are not necessarily ideal during development. It is during development that we need to ensure the program is running clean. Although we could possibly use the same macro that is used to check all the programs and filter to run on one program, that would require us to run an extra program. What if there is an easier way? This paper demonstrates the use of the command line interface to execute the program in batch as well as check the log and provide a summary | log, error, parsing | 12 | |
| 44 | TARDIS: Tracking Alterations and Record Differences in SAS, a Macro to Add Color to Your Dataset Comparisons | Inka Leprince | Time Lords are an ancient race of time- and space-travelers from the planet Gallifrey. They have taken upon the vital role of safeguarding time-travel technology to protect and preserve order in the universe. The bureaucratic part of this responsibility requires that the High Council of Time Lords keeps a record of events and continually cross-references the current version of events against previous iterations of events. To describe the task of monitoring individuals visiting (or potentially invading) planet Earth-let alone the rest of the universe-as "challenging" would be putting it lightly. The Tracking Alterations and Record Differences in SAS (TARDIS) macro was developed to ease the High Council's burden by dynamically coloring records to identify antiquated or expunged incidents from the preceding version of events when compared against the current version of events. Additionally, TARDIS applies text formatting to highlight new events that had previously not occurred. After reading this paper, SAS users will acquire the knowledge to seamlessly integrate the TARDIS macro into existing listing programs, generate color-coded listings, and preserve order in the universe | proc report, sample, proc step, character variable, macro variable, full join, macro parameter, sas output, macro definition | 23 | |
| 45 | Ten Practical Rules for Creating Effective Charts, Figures, and Visuals Using SAS | Kirk Paul Lafler | Effective charts, figures, and visuals are essential for communicating data clearly and accurately, yet their creation is rarely straightforward or automatic. The same dataset can be represented in many ways, such as histograms, scatter plots, bar charts, or pie charts, and even when the same visualization type is used, interpretation can vary widely across audiences. A more inclusive perspective views data visualization as a graphical interface between people and data, emphasizing clarity, accessibility, and intent. This paper builds on the work of Nicolas P. Rougier, Michael Droettboom, and Philip E. Bourne by presenting ten practical rules for improving the design and production of charts, figures, and visuals using SAS | bar chart, proc sgplot, histogram, scatter plot, proc step, excel, vertical bar chart, proc sgpanel, box plot, bubble plot, series plot, proc freq, class variable, correlation, data science | 19 | |
| 46 | The Analysts Guide to Efficient Theme Park Tourism | Caleb Greski, Desyne Martinez, Joe DeMaio |
Theme parks have been the pinnacle of excitement for many tourists for decades. The expectation of a theme park is not only about seeking thrill and enjoying multiple attractions, but from the overall experience of the environment as a whole. Tourists look forward to visiting as many themed attractions as possible, but this could present an issue when accounting for factors such as distance and wait times between each ride. Seeking the optimal route to enjoy each attraction possible while reducing wait time s is something each and every attendee wants. However, what is the most optimal way to achieve this goal? In this paper, we analyze the wait time distributions of rides at Disneyland in Anaheim, California, and extrapolate categories of attractions. This can provide parkgoers with helpful information on what to expect when going to Disneyland, and how to plan to best use their time | exponential distribution, outlier | 12 | |
| 47 | The Battle of the Titans (Part II): PROC REPORT versus PROC TABULATE | Kirk Paul Lafler, Joshua M. Horstman, Ben Cochran, Ray Pass, Daniel E. Bruns |
Should I use PROC REPORT or PROC TABULATE to produce that report? Which one will give me the control and flexibility to produce the report exactly the way I want it to look? Which one is easier to use? Which one is more powerful? WHICH ONE IS BETTER? If you have these and other questions about the pros and cons of the REPORT and TABULATE procedures, this presentation is for you. We will discuss, using real-life report scenarios, the strengths (and even a few weaknesses) of the two most powerful reporting procedures in SAS (as we see it). We will provide you with the knowledge you need to make that difficult decision about which procedure to use to get the report you really want and need |
proc step, proc report, proc tabulate, excel, proc means | 18 | |
| 48 | The Business Value of Diversity Combined with Data Science | Stephen B. Sloan | Strong diversity programs, sensitivity to diversity issues, and the disciplined use of data science can create measurable business value. Organizations often discover that the first visible symptom of a business problem appears through a diversity lens, while the durable solution comes from rigorous analysis. This paper presents practical examples showing how diversity awareness, paired with SAS-based analytics, can improve retention, sharpen decision-making, reduce compliance risk, strengthen client relationships, and produce better science. Many organizations are aware of both the importance of diversity and the fact that problems sometimes manifest themselves as diversity issues, even when they have other causes. It also explores areas where certain regulatory requirements may change and where other areas have become newly important. For programmers, statisticians, business leaders, and decision-makers, the central point is straightforward: when collected well, governed well, and analyzed well, diversity becomes a business asset | data science, life sciences | 7 | |
| 49 | The SAS Hash Object Beyond the Docs as Experimental Science | Paul M. Dorfman | When one learns a new piece of SAS software, one's primary resource is the SAS documentation, usually augmented by SAS papers, books, online help and of course code cannibalization, all of which are helpful. However, sometimes the most important resource is the learner oneself willing to play with SAS code intelligently, especially one with a scientific background. This is particularly true of the SAS hash object since learning it via programming experiment can make many things the docs are vague about clear, reveal facts the docs are silent about, correct things the docs are wrong about, and lead to real hash object mastery without the need to rely on code cannibalization. This is the way the author has been able to learn the SAS object well beyond its docs since its advent in 2003 while sharing the findings, sometimes revelatory, with the SAS community. In this presentation, he hopes to intrigue the audience by demonstrating both his experimental setups and conclusions by coding, running, and examin ing what he preaches - live | hash table, do loop, error message, data step, hash iterator, sas expression, sysrc, conditional do loop | 19 | |
| 50 | Tips and Considerations for Preparing Health Data for Efficient and Accurate AI and LLM Modelling | Louise S. Hadden | Large language models (LLMs) and AI systems present new opportunities for pharmaceutical research and clinical insight generation from data derived from electronic medical record systems (EMRs). However, health-related data-especially data streams with open-ended narratives and diverse coding systems-requires rigorous preparation for use in compliant, accurate, and efficient AI workflows. This paper outlines a practical framework for preparing transcoded EMR data for AI models and LLM use within health analytics pipelines. Topics include data cleaning, normalization, de-identification, prompt engineering, and iterative refinement cycles. Three use cases are explored: (1) detecting behavioral health issues from free-text 'other specify' fields, categorizing adverse patient safety events from free-text 'other specify' fields, and (3) linking disparate medical coding systems (SNOMED, ICD-10, Common Formats, FHIR/HL7, etc.) Implementations using SAS, AWS AI tools, and open source software are discussed | proc sql, data cleaning, normalization, proc step | 5 | |
| 51 | Uncovering Market Inefficiencies in New York City Apartment Pricing: A Geospatial and Demographic Modeling Approach | Nick Rejda, Hadley Dowers |
This paper examines how reported crime and neighborhood characteristics relate to mean gross rent across New York City's Neighborhood Tabulation Areas (NTAs). We spatially joined NYPD complaint records to NTA boundaries, converted reported incidents occurring in 2023 to rates per 1,000 residents, and combined those measures with demographic and housing estimates from the American Community Survey (ACS) via NYC Population FactFinder. The analysis includes 180 NTAs in the Bronx, Brooklyn, Manhattan, and Queens. A stepwise-selected linear regression model containing 11 demographic and housing variables had an in-sample R-squared of 0.9649; crime measures were not retained by that selection procedure. A separate model using only 2023 felony, misdemeanor, and violation rates had an R-squared of 0.328. We then mapped differences between observed and model-predicted mean gross rent to identify neighborhoods for further investigation. Several NTAs in Queens had observed rents below the model's predictions. These residuals indicate associations within the analyzed data, not verified discounts on currently available apartments or evidence of future price changes. The findings illustrate how neighborhood characteristics can inform rental-market analysis while also showing the limits of 2023 crime rates as standalone predictors in this dataset | sample, treatment effect, regression analysis | 7 | |
| 52 | Under the Hood: The Mechanics of SQL Query Optimization Techniques | Kirk Paul Lafler | The SAS software and SQL procedure provide powerful features and options for users to gain a better understanding of what's taking place during query processing. This presentation explores the fully supported SAS MSGLEVEL=I system option and PROC SQL _METHOD option to display valuable informational messages on the SAS Log about the SQL optimizer's execution plan as it relates to processing SQL queries; along with an assortment of query optimization techniques |
proc sql, proc step, sas log, options statement, where statement, index, select, cpu time, error message, sas library, data merging | 8 | |
| 53 | Understanding PROC SQL Execution Order and Its Impact on Query Results | Kiran Venna | Understanding PROC SQL execution order is important because PROC SQL statements are not executed in the same order in which they are written. This paper discusses how PROC SQL execution order impacts query results as well as errors encountered while running queries. In this paper, we discuss three scenarios: (1) why certain variables used in earlier clauses are not available to subsequent clauses, (2) differences between filtering using WHERE and HAVING clauses, and (3) how using a WHERE clause instead of AND conditions in LEFT JOIN operations can affect the final output and lead to unexpected results |
where statement, proc sql, proc step, cpu time, select | 9 | |
| 54 | Understanding SAS DATA Step Compilation, Execution, and _n_ Using Examples | Kiran Venna | Understanding how the SAS DATA STEP works internally is one of the most important skills for every SAS programmer. This paper focuses on two fundamental concepts: the DATA STEP compilation phase and execution phase, and the automatic variable _N_. During the compilation phase, the Program Data Vector is created, and variable attributes are defined, while during the execution phase, SAS processes observations by reading, assigning, and writing values to the output dataset. Examples involving single and multiple input datasets are used to demonstrate how DATA STEP compilation and execution phases affect the final output. The paper also explores that the automatic variable _N_, created during the DATA STEP, represents an iteration count rather than an observation number, and an example is provided to illustrate the same |
execution phase, compilation phase, proc step, proc print, set statement, proc contents, do loop, input statement, merge statement, _n_, automatic variable | 15 | |
| 55 | Using SAS Macro Variable Lists to Create Dynamic Data-Driven Programs | Joshua M. Horstman | Hardcoding data values into your SAS programs creates a fragile infrastructure prone to failure whenever upstream data changes. The solution? Let the macro facility write your code for you. This session explores the power of using macro variable lists to create truly dynamic, data-driven programming logic. We will walk through concrete examples illustrating how to capture live data values, store them in macro arrays, and deploy them to generate adaptive SAS code on the fly. Join us to discover how to banish data dependencies from your environment and transition to an automated, resilient programming workflow | macro variable, variable list, macro variable list, proc sql, macro facility, proc step, call symputx, macro definition, &variable, macro function, macro loop | 10 | |
| 56 | Wizardry 101: Using a Little GTL Charm on Your SAS Graphs | Dane Korver | Have you ever created a graph with an extra legend that even GenAI could not help you remove? This paper explains how Graph Template Language (GTL) can remove the pesky extra legend that SAS SG procedures sometimes create when two different statements are used to produce a graph | graph template language, proc sgplot, proc step | 5 | |
| 57 | Working with Database Data in SAS Viya | Mark L. Jordan | Traditional SAS programming skills remain valuable in SAS Viya, but getting the most from enterprise databases means understanding both the SAS/ACCESS LIBNAME engine and the new, high-performance CAS data connectors. This paper compares every major technique side-by-side: implicit and explicit SQL pass-through, server-side versus client-side CAS loads, and saving CAS in-memory tables back to databases. You'll get a clear decision matrix, real performance benchmarks, and copy-paste code patterns to maximize in-database execution and move data efficiently between your database, SAS Compute, and CAS. Whether you're on SAS 9 or fully in Viya, you'll leave ready to make informed choices that reduce data movement and speed up analytics |
proc step, sas viya, proc sql, sql pass-through, implicit sql pass-through, libname engine, group by, order by, sas 9, proc contents, create table, proc append, sas library, data standard, excel | 23 | |
| 58 | Writing SAS Code That Writes SAS Code: Dynamic Programming with the SAS Macro Language | Pratap Singh Kunwar | SAS macro programming is often introduced as a way to eliminate repetitive code, but its real value extends far beyond simple code reuse. When combined with DATA STEP programming, PROC SQL, SAS metadata, and macro processing techniques, the SAS Macro Language can transform static programs into dynamic, reusable, and scalable solutions. This paper explores practical approaches for using the SAS Macro Language to generate and control SAS code dynamically. Rather than focusing on macro syntax alone, the paper demonstrates how experienced SAS programmers can design macros that adapt to different datasets, variables, business rules, and processing requirements. Through progressively advanced examples, the paper demonstrates parameterized macros, iterative processing, conditional code generation, dynamic PROC SQL, metadata-driven programming, input validation, macro-variable scope, macro quoting, debugging, reusable macro deployment, and report orchestration. It also identifies common failure points, including unexpected macro resolution, invalid generated code, weak parameter validation, and unnecessary abstraction. The paper concludes with practical guidelines for transforming a macro from a simple time-saving utility into a maintainable programming component. Attendees will gain techniques they can immediately apply to reduce repetitive programming, automate routine development tasks, and build more flexible SAS solutions. Keywords: SAS Macro Language, Base SAS, Dynamic Programming, Metadata, PROC SQL, Automation, Debugging, Reusable Macros |
macro definition, macro debugging, sas programming | 11 | |
| 59 | Zero-Friction R for GxP: A Centralized Infrastructure Bridging SAS and R in Clinical Programming | Jaime Yan, George Wu, Jessie Yan |
Most statistical programming departments do not start fresh. When R is added to an established SAS - based clinical programming environment on a shared, locked-down Windows server, R programs must inherit folder conventions, batch schedulers, and validation expectations designed for SAS. Published accounts mostly describe greenfield R platforms or full SAS-to-R migration; the coexistence path is far less documented. We present the R equivalent of SAS's autopath.sas: a centralized configuration system that detects each program's position in the compound/study/milestone hierarchy, derives data and output paths, loads a version-locked package library, and resolves namespace conflicts - all automatically at startup. IT installs one three-line site file once; maintenance lives in a team-managed configuration directory, and new users configure nothing. Core techniques: (1) redirecting renv's project-scoped library to a single server-level, version-pinned library shared by 25 study folders across five compounds, with append-only versioned libraries so completed studies re-run reproducibly; (2) a guard that restores utility functions after legacy rm(list=ls()) calls; (3) identical environments in interactive sessions and scheduled batch jobs; and (4) package loading adapted to the program type inferred from the folder structure. Deployed across five compounds, the system replaced a documented 30 -60 minute per-user setup checklist with a single automatic startup, while retaining GxP-compatible controls: locked package versions, enforced R versions, and audit-trail support. The approach transfers to any organization adding R capability alongside existing SAS infrastructure | data cleaning, bootstrap, clinical programming, audit trail, r package, macro variable | 18 |
This site serves as a convenient hosting location and does not work as a publisher. All copyrights belong to their respective owners.
The information on this site is provided for general reference purposes only. Whilst every effort is made to ensure that the site is up to date and accurate, no warrant, nor any responsibility or liability for, the accuracy or completeness of the content or for any loss which may arise from reliance on information contained in this site is provided. Links to other sites are provided for your convenience but no responsibility or liability for the content of those sites or of any external site which links to this site is accepted. References to any specific commercial product, process, service, or corporation are also for information only, and do not constitute endorsement, recommendation or favoring.
SAS is a registered trademark of SAS Institute Inc. SAS, Statistical Analysis System, 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.
HOME
QUICK SEARCH
AUTHORS
KEYWORDS
HELP
BUGS