TOWNSURVEY Data Set

DATA Step That Creates the TOWNSURVEY Data Set

data townsurvey;
  infile datalines truncover dsd;
  length area kids seniors $ 1 comments $ 100;
  input surveyid area $ yrslived kids $ seniors $ q1-q9
comments;

datalines;
1,N,1,N,N,4,4,,4,2,2,3,4,4,
2,P,1,N,N,5,4,2,2,4,4,4,4,2,
3,T,2,N,N,4,2,1,2,3,4,4,4,5,
4,L,1,N,N,,5,4,4,1,4,4,4,2,
5,T,3,N,N,2,4,2,4,5,4,,4,,
6,T,2,N,N,3,5,3,4,3,4,4,4,3,
7,T,2,Y,N,2,1,1,3,3,3,4,2,3,"Please add more soccer fields"
8,N,2,N,N,2,4,4,3,3,,5,4,2,
9,T,3,N,Y,4,2,1,2,3,4,4,,4,"Enforce the dog barking ordinance"
...more datalines... .
;;;;
Figure A.5. Partial PROC CONTENTS Output of the TOWNSURVEY Data Set
 The CONTENTS Procedure Data Set Name WORK.TOWNSURVEY Observations 482 Member Type DATA Variables ...

Get SAS® Guide to Report Writing: Examples, Second Edition 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.