Conditional Processing in EG - SAS · IF..THEN..ELSE CONDITIONAL PROCESSING IN ENTERPRISE GUIDE...
Transcript of Conditional Processing in EG - SAS · IF..THEN..ELSE CONDITIONAL PROCESSING IN ENTERPRISE GUIDE...
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
IF..THEN..ELSE
CONDITIONAL PROCESSING
IN ENTERPRISE GUIDE
___________________________________________
Judy Orr Lawrence – SAS Training Specialist
CASE..WHEN..THEN..ELSE
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
AGENDA
Uses of Conditional Processing Create New Variables
Control Task Execution
Applying Conditional Processing Recode Values using Query Builder
Case Statements
Add Conditions to Tasks
ENTERPRISE GUIDE
CONDITIONAL PROCESSING
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
CONDITIONAL
PROCESSING CREATE NEW VARIABLES
Query Builder ~ Computed Column ~ Recode
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
CONDITIONAL
PROCESSING CREATE NEW VARIABLES
Recode ~ Discrete Values
IF
THEN
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
CONDITIONAL
PROCESSING CREATE NEW VARIABLES
Recode ~ Range of Values
IF
THEN
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
CONDITIONAL
PROCESSING CREATE NEW VARIABLES
Recode ~ Based on a Condition
IF
THEN
Extensive list of
operators
Advanced
Expression Editor
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
Case Statement
CONDITIONAL
PROCESSING CREATE NEW VARIABLES
EG
Created
Manually
Created
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
CONDITIONAL
PROCESSING CONTROL TASK EXECUTION
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
CONDITIONAL
PROCESSING CONTROL TASK EXECUTION
IF
THEN
Condition can be based on:
- Dataset value
- Date / Time value
- Prompt value
- Macro variable value
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
TRAINING HTTP://SUPPORT.SAS.COM/TRAINING/CANADA/
Course
SAS Enterprise Guide 1: Querying and Reporting
SAS Enterprise Guide for Experienced SAS Programmers
SAS Enterprise Guide 2: Advanced Tasks and Querying
Creating Reports and Graphs with SAS Enterprise Guide
Available as Public
Live-Web & E-Learning
Courses
This Course includes
Conditional Processing
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .sas.com
THANK YOU!
___________________________