List observations in a data set where at least one of the character variables has a long length. Wrap the character data in the column assigned to the lengthy character variable.
Town Survey Comments Received Years Children Residential Lived in Under Adults Area Town 18? Over 65? Comments ----------------------------------------------- ------------------------------------ Lakeside < 2 No No Empty the garbage cans at the parks more frequently 2-10 Yes No Too much paperwork to just remodel a kitchen More than 10 Yes No We loved the canoe derby No No Enforce the beach curfew Northwest < 2 Yes No More organized sports for the kids 2-10 No Yes Replace wornout street signs Yes Yes We want snowmobile trails More than 10 Yes No Advertise the brush pickup earlier than two weeks before the pickup No Yes Change the yield sign to a stop sign at W. Lake and Hilltop Prairie 2-10 Yes No Stop all outdoor burning because it aggravates my asthma No No Enforce the leash laws. Add an off leash dog park. More than 10 Yes No Loved the community picnic Town Center < 2 No No Partner with neighboring communities to build a public library No No City office is never open when I'm off work. Please expand the hours. Yes Yes Plow the snow early and plow often Yes No More soccer fields now!!! No Yes Too many potholes 2-10 Yes No Please add more soccer fields Yes No Add rink lights for lacrosse and hockey at night Yes No Salt the roads faster after each snowfall More than 10 No Yes Enforce the dog barking ordinance Yes No Our kids love the new playground equipment |
Data Set | TOWNSURVEY |
Featured Step | PROC REPORT |
Featured Step Statements and Options | DEFINE statement: FLOW, NOPRINT, ORDER, and ORDER= options
BREAK AFTER statement Using the ORDER option to arrange observations by the variable while suppressing the display of the ordering variable with NOPRINT |
Formatting Features | PROC REPORT statement: HEADLINE option when sending output to the LISTING destination
DEFINE statement: WIDTH option when sending output to the LISTING destination BREAK AFTER statement: SKIP option when sending output to the LISTING destination |
Other Examples That Use This Data Set | Example 3.9 |
This report lists the comments that town residents gave in a survey of town services. Each set of lines that comprises a complete comment corresponds to one observation in the TOWNSURVEY data set. The report includes only the observations where a comment was recorded. Each column in the report corresponds to one variable in the input data set.
See Figure 3.9a in Example 3.9 for the form that collected the survey data.
PROC REPORT reference, usage information, and additional examples. See “The REPORT Procedure,” in the “Procedures” section of Base SAS 9.1 Procedures Guide.
18.119.132.123