Chapter 17
Managing Your Data in the SAS
Windowing Environment
Introduction to Managing Your Data in the SAS Windowing Environment . . . . 378
Managing Data with SAS Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Introduction to Managing Data with SAS Explorer . . . . . . . . . . . . . . . . . . . . . . . . 378
Viewing Libraries and Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Assign File Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Rename a SAS Data Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Copy or Duplicate a SAS Data Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Sorting Data Sets in a Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
View the Properties of a SAS Data Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Working with VIEWTABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Overview of VIEWTABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Opening a SAS Data Set in a VIEWTABLE Window . . . . . . . . . . . . . . . . . . . . . . 382
Displaying Table Headers as Names or Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
Customizing SAS Explorer for Opening the VIEWTABLE Window . . . . . . . . . . 385
Order of Precedence for How Column Headings Are Displayed . . . . . . . . . . . . . . 386
Mapping the VIEWTABLE Command to a Function Key . . . . . . . . . . . . . . . . . . . 386
Temporarily Change Column Headings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Move Columns in a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Sort by Values of a Column . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Edit Cell Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Subsetting Data By Using the WHERE Expression . . . . . . . . . . . . . . . . . . . . . . . . 392
Subset Rows of a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Clear the WHERE Expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Exporting a Subset of Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Overview of Exporting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Export Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Importing Data into a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Overview of Importing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Import a Standard File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Import a Nonstandard File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
377

Get SAS 9.4 Language Reference, 6th 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.