SAS Enterprise Guide 2: Advanced Tasks and Querying



This course is intended for experienced SAS Enterprise Guide users who want to learn more about advanced SAS Enterprise Guide techniques. In this course, you will learn how to use the Query Builder within SAS Enterprise Guide, including manipulating character, numeric, and date values. You will also learn how to convert variable type as well as build conditional expressions using the Expression Builder. Efficiency issues, such as joining tables and using a single query to group, summarize, and filter data is also addressed in this course.


  • Non-programmers with SAS Enterprise Guide experience
  • Experienced programmers with SAS Enterprise Guide experience


  • No SAS or SQL programming experience is required
  • Know how to navigate the SAS Enterprise Guide environment, create projects, add data sources, accomplish basic analysis and reporting using tasks, and create queries
  • Note: You can gain this knowledge by taking the SAS Enterprise Guide 1: Querying and Reporting course or by completing the Getting Started tutorial in SAS Enterprise Guide.

Learning Objectives

  • Use tasks to transpose, stack, rank, and create a random sample of your data
  • Use functions to convert the data type from character to numeric and from numeric to character
  • Use conditional logic in the Query Builder to create new columns
  • Use multiple value prompts

1. Introduction

  • Course overview
  • Course logistics

2. Using the Data Menu

  • Append Tables task
  • Split Columns task
  • Stack Columns task
  • Random Sample task
  • Sort Data task

3. Using Functions in the Query Builder

  • Introduction to SAS functions
  • Manipulating numeric values
  • Manipulating character values
  • Converting data type

4. Prompting and Conditional Processing

  • Multiple values prompts
  • Range prompts
  • Conditional processing of project steps

5. Recoding Data

  • Recoding values
  • Recoding values based on a condition
  • Writing CASE expressions
  • Creating and applying custom formats

6. Grouping and Filtering

  • Grouping and summarizing data
  • Including detail and summarized data
  • Filtering summarized data in groups

7. Learning More

  • SAS resources
  • Beyond this course

8. Additional Query Topics

  • Query options
  • Querying DBMS tables