Chapter 4: Generate a Document for Each Observation in a SAS Data Set

4.1 A Single Document as an HTML File

4.1.1 Output File Logical Record Length

4.2 A Separate HTML File for Each Observation

4.3 Generating a Document for Each Observation as an RTF File

4.3.1 Creating RTF SAS Server Pages

4.4 Next Steps

This example illustrates a well-known use case—a mail-merge where the requirement is to generate custom content for each defined subset of data, usually each observation. Such observations can be individual observations in a SAS data set or aggregated summary statistics for each value of a class variable. There are numerous other potential use cases that can be implemented using a comparable approach.

We will start with a simple example ...

Get SAS Server Pages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.