![Page 1: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/1.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
WHAT’S NEW IN FOUNDATION SAS FOR 9.4
SASKATOON SAS USERS GROUP
SASKATOON, SASKATCHEWAN
12 MARCH 2014
CHARU SHANKAR
SAS INSTITUTE INC.
![Page 2: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/2.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
Simplify InnovateEnable
Provide quick,
precise answers;
reduce time to value
Remove barriers of
analytical knowledge
and complexity;
reduce risk
Make analytics
approachable and
easy to integrate;
support collaboration
SAS 9.4 CORE THEMES
DeploymentChoices
-On-premises
-Hosted
-Cloud
![Page 3: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/3.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS 9.4 AGENDA
• Languages
• Reporting
• SAS Enterprise Guide 6.1
What’s new
![Page 4: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/4.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
LANGUAGES
![Page 5: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/5.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS 9.4
BASE SASNEW PROGRAMMING LANGUAGES
DS2 - New SAS proprietary programming language
• Object-based syntax – user-defined methods and packages
• ANSI SQL data type support
• Embedded FedSQL in the SET statement
• Runs anywhere – Base, In-Database (via SAS Code
Accelerator), HPA (via HPDS2)
FedSQL - SAS proprietary implementation of
ANSI SQL:1999 core standard
• Scalable, threaded, high-performance way to access, manage,
and share relational data in multiple data sources
• Common SQL syntax across all data sources
![Page 6: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/6.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2 OVERVIEW
DS2 is a new SAS proprietary
programming language that is
appropriate for advanced data
manipulation and data
modeling applications
![Page 7: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/7.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
BASIC DS2 SYNTAXPROC DS2;
data _null_;
method init();
dcl varchar(20) foo;
foo = '**> Starting';
put foo;
end;
method run();
set ds2_sas.banks;
put _all_;
end;
method term();
dcl char(11) bar;
bar = '**> I quit!';
put bar;
end;
run; quit;
Initial processing
Execution loop
Final processing
![Page 8: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/8.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2 WHY USE IT?
DS2 is beneficial in applications that
• need to use the extended data types
• can make use of packages and methods to re-use
common functions or operations
• can utilize parallel processing (for computationally
intense processes)
• require large data movement.
![Page 9: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/9.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2 OVERVIEW
BIGINT
BINARY(n)
CHAR(n)
DATE
DOUBLE
FLOAT(p)
INTEGER
NCHAR(n)
The syntax of the DS2
language intersects with the
SAS DATA step but also
includes additional data types,
ANSI SQL types, programming
structure elements, and user-
defined methods and packages
NVARCHAR(n)
REAL
SMALLINT
TIME(p)
TIMESTAMP(p)
TINYINT
VARBINARY(n)
VARCHAR(n)
![Page 10: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/10.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS
DATA
DATA
DS2
DATA
DS2
Thread
SAS IN-DATABASE
CODE ACCELERATOR
Move the DS2 code to the MPP database
![Page 11: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/11.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2 MODERN PROGRAMMING STRUCTURE
Packages
• User–defined: Create collections of re-usable, user-
defined methods
• Pre-defined:
• FCMP – Import PROC FCMP functions
• Hash / Hash Iterator
• Matrix – Do matrix math in DS2
• SQLStmnt – Execute data-driven SQL statements from within
a DS2 program
![Page 12: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/12.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
USER-DEFINED METHODSPROC DS2;
data _null_;
method c2f(double Tc) returns double;
/* Celsius to Farenheit */
return (((Tc*9)/5)+32);
end;
method init();
dcl double Degc DegF;
do DegC=0 to 30 by 15;
DegF=c2f(DegC);
PUT DegC= DegF=;
end;
end;
enddata;
run;
quit;
Define method
Call method
![Page 13: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/13.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
IMBEDDED SQL IN DS2proc ds2;
data sales (overwrite=YES);
keep Customer_ID Total;
method run();
set {select c.Customer_ID
,Total_Retail_Price
from ds2_sas.order_fact f
full join
ds2_sas.customer_dim c
on f.Customer_ID=c.Customer_ID
order by 1};
by customer_id;
if first.customer_id then Total=0;
Total+total_retail_price;
if last.customer_id then output;
end; enddata;
run;quit;
Returns SQL
result set as input
stream
BY group
processing on
results
![Page 14: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/14.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
REPORTING
![Page 15: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/15.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .Copyright © 2012, SAS Institute Inc. All rights reserved.
ODS LAYOUT
Arrange ODS output objects exactly where you want them on a page, or use dynamic
placement of objects by using a grid structure..
![Page 16: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/16.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
ODS ODS REPORT WRITING INTERFACE (RWI)
Create and manipulate predefined ODS objects in a DATA step to create highly
customized output.
![Page 17: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/17.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .Copyright © 2012, SAS Institute Inc. All rights reserved.
CASCADING
STYLESHEETS
CASCADING
STYLESHEETS
![Page 18: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/18.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS 9.4
BASE SASNEW OUTPUT DELIVERY SYSTEM (ODS) - DESTINATIONSODS EPUB - Create SAS reports as e-books that can be
read with Apple iBooks e-book reader on iPad and iPhone.
ODS POWERPOINT – Create Microsoft PowerPoint slides
that combine text and SAS reports.
ODS HTML5 – Create HTML5 output for SAS reports to
support delivery to any web browser that is
HTML5-compatible.
ODS Package - Fortunately, SAS can read and write ZIP
files directly. Ever since SAS 9.2, we've been able to create
ZIP files with ODS PACKAGE. Beginning with SAS 9.4, we
can read ZIP content by using FILENAME ZIP.
![Page 19: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/19.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .Copyright © 2012, SAS Institute Inc. All rights reserved.
EPUB
![Page 20: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/20.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .Copyright © 2012, SAS Institute Inc. All rights reserved.
POWERPOINT
![Page 21: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/21.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .Copyright © 2012, SAS Institute Inc. All rights reserved.
HTML5
![Page 22: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/22.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS ENTERPRISE GUIDE 6.1
![Page 23: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/23.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS 9.4
BASE SASSAS ENTERPRISE GUIDE 6.1• Support - SAS Enterprise Guide 6.1 is supported on SAS 9.4, 9.3, and
9.2.
• Improved programmer productivity - new Log Summary window, which
lists all the errors, warnings, and notes that were generated when the
program ran, as well as related line numbers and a sample of the affected
code.
• Documentation – can add sticky notes for more information to a process
flow or to specific objects in the process flow.
• Integration - The first maintenance release for SAS Enterprise Guide 6.1
(which shipped in December 2013) provides integration with SAS Visual
Analytics 6.2 and 6.3. Because of this integration, you can open and
refresh reports that were created using SAS Visual Analytics Designer and
SAS Visual Analytics Explorer. You can also save a SAS Visual Analytics
report with your SAS Enterprise Guide project.
![Page 24: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/24.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DOCUMENTATION
STICKY NOTESSAS ENTERPRISE GUIDE 6.1
![Page 25: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/25.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
PROGRAMMER PRODUCTIVITY
THE LOGSAS ENTERPRISE GUIDE 6.1
![Page 26: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/26.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS ENTERPRISE GUIDE 6.1 WHAT IF THERE ARE ERRORS IN THE SAS LOG
![Page 27: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/27.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OTHER NEW FEATURES CHECK THE OBSERVATIONS QUICKLY
![Page 28: WHAT’S NEW IN FOUNDATION SAS FOR 9 Group Presentati… · • Improved programmer productivity - new Log Summary window, which lists all the errors, warnings, and notes that were](https://reader034.vdocuments.mx/reader034/viewer/2022042307/5ed32fec5c6a5710b253cce8/html5/thumbnails/28.jpg)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .sas.com
WHAT’S NEW IN FOUNDATION SAS FOR 9.4
Charu Shankar
SAS institute Inc.
BLOG http://blogs.sas.com/content/sastraining/author/charushankar/
LINKEDIN http://ca.linkedin.com/in/charushankar
TWITTER https://twitter.com/CharuSAS
EMAIL [email protected]