How to Prepare Your Data Sets

Determining the Structure and Contents of the Data Sets

To help determine how your data is related, look at the structure of the data sets. To see the structure, use the DATASETS procedure. To display the descriptor information, use the CONTENTS procedure. Descriptor information includes the number of rows in each data set, the name and attributes of each column, and an alphabetic list of extended attributes (including data set and column extended attributes). To print a sample of the rows, use the PRINT procedure or the REPORT procedure.

Testing Your Program

Create small temporary data sets that contain a sample of rows that test all of your program's logic. If your logic is faulty and you get unexpected ...

Get SAS Certification Prep Guide, 4th 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.