Example 9.5 Creating Columns That Contain the Attributes of Other Columns


Create a table that has metadata for columns in specific tables. Determine the name, type, length, label, and format of the columns and designate these as columns in the new table.

Example Features

Featured StepPROC SQL
Featured Step Options and StatementsDICTIONARY tables COLUMNS and TABLES Subqueries
A Closer LookAccessing SAS System Information Using Dictionary Tables

Input Tables

Tables TRIAL3_WEEK01, TRIAL3_WEEK02, TRIAL3_WEEK04, and TRIAL3_WEEK08 contain medical information for two patients in a clinical trial. The tables have a combination of variables that are in common and that are unique among the four tables. Assume the tables are saved in a library that ...

Get Combining and Modifying SAS® Data Sets: Examples Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.