Chapter Contents

Previous

Next
Doing More with SAS/ASSIST Software

Querying Data

The Query and Reporting Query window is a menu-driven interface that enables you to query SAS or DB2 data. You can create queries that access one or more tables or views. It is not necessary to know your system's SQL syntax. In the Query window you can

The Query window supports subsetting data, arithmetic expressions, and column functions, as well as group processing and ordering. Queries can contain an unlimited number of prompts. A prompt displays a window that asks users for values when the query is executed.

The output from queries can be saved as SAS tables (that is, SAS data files or data views), as DB2 tables, as tables in any other database for which you have SAS/ACCESS software licensed, or as external files. The generated SQL code can be browsed, and queries can be saved for editing in the SQL Editor window.

To select data for your queries, you use the Select window, which is accessed from the Query window. You select the tables, views, and columns that you use to create your queries. Then in the Query window, you can customize your queries further. The following figure illustrates this process.

The Query Process

[IMAGE]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.