Kicking to bigger uprights: Field goal kicking performance ...
Kicking and Screaming Your Way to SAS® Enterprise Guide
-
Upload
thotwave -
Category
Data & Analytics
-
view
399 -
download
2
Transcript of Kicking and Screaming Your Way to SAS® Enterprise Guide
we create thinking data®
Kicking and Screaming Your Way to SAS® Enterprise Guide®
M. Michelle BucheckerDirector of Technical Training ServicesThotWave Technologies
1
About the Presenter
Michelle Buchecker is the Director of Technical Training Services for ThotWave Technologies, LLC. She is responsible for helping customers build the next generation of analytic professionals.
Her specialties include training development, training delivery, Base SAS®, Macro, SAS Enterprise Guide®, SAS/Connect®, OLAP, and BI.
She has been teaching SAS software for over 20 years.
Lessons
1 What are the benefits and basic interface of SAS Enterprise Guide?
2
3
Intro to SAS Enterprise Guide
What techniques are available to make me a more efficient programmer?
Efficient Programming
How do I work with SAS programs, logs, and outputs in SAS Enterprise Guide?
Working with the Interface
4
SAS Enterprise Guide Program Editor
SAS Enterprise Guide includes a programming editor similar to the Enhanced Program Editor in SAS Display Manager.Additional functionality in the SAS Enterprise Guide Program Editor includes the following:
6
Intro to EG
autocomplete
dynamic syntax tooltips
formatting programs to provide consistent spacing
analyzing program flow
SAS Enterprise Guide Process Flows
A process flow is a visual way to see relationships between objects.
Code
Results
Data
Tasks
Notes
8
Intro to EG
SAS Enterprise Guide Program Editor
SAS Enterprise Guide includes a programming editor similar to the Enhanced Program Editor in SAS Display Manager.Additional functionality in the SAS Enterprise Guide Program Editor includes the following:
autocomplete
dynamic syntax tooltips
formatting programs to provide consistent spacing
analyzing program flow
10
Efficient Programming
Creating a New Program
To create a new program in SAS Enterprise Guide, click File > New > Program.
11
Efficient Programming
Using Autocomplete
The editor can suggest: • SAS statements• procedures• macro programs • macro variables• functions• formats • librefs• SAS data sets• variable names
In SAS Enterprise Guide, the Program Editor includes an autocomplete feature.
12
Efficient Programming
autocomplete
Using Inline Help
If you hover over words in the program, you will notice inline help for keywords in a context-sensitive manner.
13
Efficient Programming
dynamic syntax tooltips
Using Inline Help
Inline Help is especially useful for infrequently used options.
14
Efficient Programming
Formatting Code
Poorly formatted code.
Efficient Programming
formatting programs to provide consistent spacing
17
Creating an Analysis of a Program
Programs can be dissected for relationship of the components
• steps• data sets• outputs• documentation
To analyze a program in SAS Enterprise Guide, click Analyze Program > Analyze for Program Flow. Then click Begin analysis.
20
Efficient Programming
analyzing program flow
Creating a Visual Relationship of a Program
Once analysis is complete, you can create a visual relationship of the program. SAS Enterprise Guide calls this a process flow.
Provide a name for the process flow and click Create process flow.
21
Efficient Programming
Creating a Process Flow from a Program
A new process flow is created in the project depicting a visual representation of the program.
22
Efficient Programming
Opening an Existing Program
Click File > Open > Program
Options to open an existing program in SAS Enterprise Guide:
Navigate through the tree structure in the Servers list or your local machine.
24
Interface
Opening an Existing Program
• Navigate to the desired directory.• Double-click on the program.
25
Interface
Running an Existing Program
• Select Run from the toolbar.• Right-click on the program and select Run on server.• Press F8 or F3.
If running on a server, verify you are connected to the correct Server.
A SAS program can be submitted using one of these techniques:
26
Interface
Running a Portion of a Program
• Select the down arrow next to Run > RunSelection from the toolbar.
• Right-click on the program and select Run Selection on server.
• Press the F3 or F8 key.
A portion of a SAS program can be submitted by highlighting the code and doing any of the following:
27
Interface
Identifying Warning & Errors in the Log
The code icons in the project indicate whether there are warnings or errors in the SAS log.
28
Interface
Viewing the Log Tab
The Log tab displays the log from SAS Enterprise Guide-generated statements and the code submitted.
29
Interface
Identifying Warning & Errors in the Log
Arrows on the Log tab enable quick navigation to the next warning or error.
30
Interface
Viewing the Log Summary
The Log Summary pane can be toggled on/off to show errors, warnings, and/or notes.
31
Interface
Viewing the Results Tab
The Results tab displays output that would go to the Output window or .LST file.
32
Interface
Saving a Program
Changes to the program can be saved from the Program tab or by pressing Ctrl+Shift+S.
34
Interface
Saving a Program
If you create a program from scratch in SAS Enterprise Guide (File > New > Program), the Save button saves the code internally to the project only.
Use Save As to save the code outside of SAS Enterprise Guide.
35
Interface
Programming Statements to Avoid
Be aware of the following statements:• Code that would normally cause a window or prompt to appear (DEBUG, PROC FSLIST,
KEYS) does not work and causes error messages in SAS Enterprise Guide.• Code that terminates the SAS process with ABORT or ENDSAS calls terminates the
connection between SAS Enterprise Guide and the SAS server.
36
Interface
Summary
Now that you’ve attended this presentation, you should be able to:
Explain the benefits and basic interface of SAS Enterprise Guide.
Use the SAS Enterprise Guide interface to be a more efficient programmer.
Work with programs, logs, and output.
1
2
3
37