Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
Switching to Enterprise Guide: Pros and Cons
Guillaume Colley
Lead Data Analyst
BC Centre For Excellence in HIV/AIDS
May 27th, 2015
Quick Survey
Q1: How many of you EVER used SAS EG ?
Q2: How many of you PRIMARILY use SAS EG ?
Q1-Q2 = Tried but hated it ?
Disclaimer
The views and opinions expressed in thispresentation are solely those of the originalauthor.
These views and opinions do not necessarilyrepresent those of the BC CFE staff, themembers of the VanSUG group, Chuck Norris,and/or any/all other contributors.
0
0
Content
• EG Introduction – Project and Layout
• Process Flow
• Table/Log View
• Library View
• Code Editor
• Conclusion
0
0
EG Introduction: Projects• A project (egp file) can have multiple
Process Flows
• Process Flows can contain multiple program/tables as well as Word/Excel documents, processing nodes, notes, reports…
• You don’t need to save your N programs individually, just 1 egp file.
• Project Recovery automatically saves the current project every X minutes
2
0
EG Introduction: Layout• Split screen
– It takes some practice to get use to switching between Process Flow screen and Code/Log/Data
2
1
Process Flow
• The Process Flow is one of the two main reasons for switching to EG
– “Divide and Conquer” (organize your code in many small steps) really benefits from EG
– Clean, user-friendly, easy to understand and re-run/debug*
* (if the process flow is well designed and organised)
2
1
Process Flow
• Example using SAS Base
• 1 SAS program file
– 1000+ lines
– Have to read all to understand the structure and logic
– Hard to debug
2
1
Process Flow• Example using SAS Base
– Multiple SAS program files
– Easier to understand the structure and logic and debug, but not great.
??
?
?
?
?
2
1
Process Flow• Running process flow
– You can still view, edit programs/tables while EG is running !
Currently running
Queued program
Warning Error
5
1
Process Flow• Last execution time
– The projects stores the last execution time for each program
– Right click, Properties
7
1
Process Flow• “Point and Click” tools
– Query builder
– Filter and sort
– Merge
7
2
• Opaque, hard to debug
Table/Log View• Data grid only reads the records to be showed
in the grid– Quick display of data even for large datasets
9
2
Table/Log View• Logs “belong” to each program
– Will ask you every time you run something if you want to replace or append
– Turn “Project Log” on to get the full project log recorded
11
5
Library View
• Does not refresh automatically
• Right-click, Properties do not show the # of records
11
7
Code Editor
• The Code Editor is the second main reason for switching to EG
– Hightlights matching parentheses !
12
7
Code Editor
• SAS Documentation
– Appears when the cursor is on a keyword or when typing a function
13
7
Conclusion
• For ad-hoc, not intended to be re-used, “quick and dirty” data manipulation, check, or counts:
• For bigger projects, with the possibility of update/recurrence :
15
7