Appendix C. Sample Data Set

The following DATA steps create the data set that is used in this book. Make sure you define a libref for BOOKS before submitting the second DATA step.

data bookdb; attrib section length=$30 label='Section' booktitle length=$50 label='Title of Book' author length=$50 label='First Author' publisher length=$50 label='Publisher' cost length=8 label='Wholesale Cost' format=dollar10.2 listprice length=8 label='List Price' format=dollar10.2 saleprice length=8 label='Sale Price' format=dollar10.2; array sname{6} $ 30 ('Internet' 'Networks and Telecommunication' 'Operating Systems' 'Programming and Applications' 'Certification and Training' 'Web Design'); array ln{125} $ 15 _temporary_ ( 'Smith ' 'Johnson ' 'Williams ' 'Jones ...

Get SAS® Macro Programming Made Easy, 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.