Copyright © 2006, SAS Institute Inc. All rights reserved. New (Useful & Cool) Features of Enterprise Guide 4.3 James Waite – SAS Training Specialist (BI)
Copyright © 2006, SAS Institute Inc. All rights reserved.
New (Useful & Cool) Featuresof Enterprise Guide 4.3James Waite – SAS Training Specialist (BI)
Copyright © 2006, SAS Institute Inc. All rights reserved.
Agenda
� Focus of Enhancements
� Programming Features
� Great references
� Demo
� Q & A
Copyright © 2006, SAS Institute Inc. All rights reserved.
Focus of Enhancements
� Some interface niceties
� Programming interface
� Programming interface
� Programming interface
Copyright © 2006, SAS Institute Inc. All rights reserved.
Preview Data
Copyright © 2006, SAS Institute Inc. All rights reserved.
(Just Some) Programming Features
� Syntax Suggestion and Autocomplete
� Integrated Help Documentation
� Enhanced Process Flows (i.e Autoexec)
� Hot Keys
� Automatic Code Formatting
� Code Analyzer
Copyright © 2006, SAS Institute Inc. All rights reserved.
Syntax Suggestion and Autocomplete
Copyright © 2006, SAS Institute Inc. All rights reserved.
Integrated Help Documentation
Copyright © 2006, SAS Institute Inc. All rights reserved.
Autocomplete – As You Like It
Copyright © 2006, SAS Institute Inc. All rights reserved.
Enhanced Process Flows (i.e Autoexec)
Copyright © 2006, SAS Institute Inc. All rights reserved.
Hot Keys
� Formats (Ctrl+Shift+F) and Informats (Ctrl+Shift+I)
� SAS Libraries (Ctrl+L)
� SAS Functions (Ctrl+Shift+F1)
� Configurable!
• Program > Enhanced Editor Keys
Copyright © 2006, SAS Institute Inc. All rights reserved.
Automatic Code Formatting
� Indentation
� Line Returns
� Etc.
Copyright © 2006, SAS Institute Inc. All rights reserved.
Code Analyzer
� Runs code and creates a Process Flow
� Great for legacy code
Copyright © 2006, SAS Institute Inc. All rights reserved.
Great References
� New Goodies for SAS Programmers in SAS Enterprise Guide 4.3http://support.sas.com/documentation/onlinedoc/guide/blog/SASTalks2011_EG43_programmer.pdf
� SAS® Enterprise Guide® 4.3: Finally a Programmer’s Toolhttp://support.sas.com/resources/papers/proceedings11/166-2011.pdf
• Hands-on workshop using the SHOES data from sashelp
• Extensive coverage of new 4.3 programming features and capabilities that were introduced in 4.2 (i.e. reporting, prompting, conditional processing, etc.)
� SAS Enterprise Guide Online Documentationhttp://support.sas.com/documentation/onlinedoc/guide/
� What's New in SAS Enterprise Guide 4.3http://support.sas.com/documentation/cdl/en/whatsnew/62580/HTML/default/viewer.htm#/documentation/cdl/en/whatsnew/62580/HTML/default/egwhatsnew43.htm
Copyright © 2006, SAS Institute Inc. All rights reserved.
Demo
� Create an EG Project based on existing code
Copyright © 2006, SAS Institute Inc. All rights reserved.
Q & A
� Questions?
Copyright © 2006, SAS Institute Inc. All rights reserved.
Example Code Start/* Code below is a modified example of the code discussed and used more fully in the *//* SAS Global Forum 2011 hands-on workshop SAS® Enterprise Guide® 4.3: Finally a Programmer’s Tool" *//* http://support.sas.com/resources/papers/proceedings11/166-2011.pdf */
data Shoes_Data;
set sashelp.shoes;AverageSalesPerStore = sales / stores;label AverageSalesPerStore =
'Average Sales Per Store';run;
ods listing close;
/*******************************************************************/
/* Create MS Excel Workbook */
/*******************************************************************/
ods tagsets.ExcelXP path = 'C:\Demonstrations\EG43'
file='Shoes_Report.xls' style=sasweb;title "Basic Shoe Report";proc print data=Shoes_Data noobs label ;run;odstagsets.ExcelXP close; ods listing;
Copyright © 2006, SAS Institute Inc. All rights reserved.
Example Code Start – cont’d/* Create PDF Report */
ods listing close;
ods pdf file = 'C:\Demonstrations\EG43\EG Shoes_Report.pdf';
proc report data = Shoes_Data;
column ("Location" (Region Subsidiary Stores)) Product ("Sales" (Sales AverageSalesPerStore);
define region / order "Region"; define Subsidiary / order "Subsidiary";define Stores /
display "Number of Stores";define Product / display "Product";define Sales / Sum
"Sales";define AverageSalesPerStore / Sum "Avg Sales per Store";break after region /
summarize; rbreak after / summarize;
run;
ods pdf close;
ods listing;