sas® 9.4 –what‘s new in sas...title sas academic conference - sas 9.4 what's new in sas -...

13
Copyright © 2012, SAS Institute Inc. All rights reserved. Copyright © 2010, SAS Institute Inc. All rights reserved. Copyright © 2014, SAS Institute Inc. All rights reserved. SAS® 9.4 – WHAT‘S NEW IN SAS MATHIAS COOPMANS

Upload: others

Post on 21-Aug-2020

17 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d . Copyright © 2010, SAS Institute Inc. All rights reserved.Copyright © 2014, SAS Institute Inc. All rights reserved.

SAS® 9.4 – WHAT‘S NEW IN SAS

MATHIAS COOPMANS

Page 2: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

AG

EN

DA

• SAS Analytics U

• New Programming Language DS2

• Output Delivery System

• ODS GRAPHICS

Page 3: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

• Does not replace the DATA step language

• DATA step DNA is clearly visible

• DATA and SET statements

• IF...THEN...ELSE, DO loops

• Expressions and Functions

• Arrays

• But this is a new species of DATA step

• No INFILE, INPUT, MERGE, UPDATE, MODIFY statements

• Methods, Packages, and Scoping

WHAT IS DS2?

Page 4: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

• DS2 is a new SAS programming language.

• is included with Base SAS

• has syntax that is similar to the Base SAS DATA step

• provides advanced techniques for data manipulation

WHAT IS DS2?

proc ds2;data _null_;

method init();Text='Hello, World!';put Text=;

end;enddata;run;quit;

data _null_;Text='Hello, World!';put Text=;

run;

Base SAS DATA Step DS2 DATA Step

Page 5: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

• Do SAS-y things in places SAS has never run before

• Modernized programming techniques and structures

• Strict variable declaration (optional)

• Variable scoping

• Methods

• Predefined (INIT, RUN, TERM)

• User-defined

• Variable encapsulation

• Packages

• Predefined (HASH, SQLSTMT, Logger, FCMP, …)

• User-defined

WHY DS2

Page 6: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

• DS2 natively supports ANSI SQL data types for precise

data manipulation.

• Examples:

WHAT IS NEW IN DS2?

Data Type Examples

Fractional Numerics DECIMAL, DOUBLE, FLOAT, REAL

Integer Numerics BIGINT, INTEGER, SMALLINT, TINYINT

Date and Time DATE, TIME, TIMESTAMP

Character CHAR, NCHAR, VARCHAR,

NVARCHAR

SAS numeric variables are processed as DOUBLE.

SAS character variables are processed as CHAR.

Page 7: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

• The Base SAS DATA step processes each observation sequentially.

• DS2 can process observations in parallel.

WHAT IS NEW IN DS2?

DS2 DS2 DS2

Page 8: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

With the SAS In-Database Code Accelerator, DS2 can also be executed in-

database (Greenplum, Teradata, Oracle, …).

WHAT IS NEW IN DS2?

RDBMS

DS2 DS2 DS2

Page 9: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

AG

EN

DA

• SAS Analytics U

• New Programming Language DS2

• Output Delivery System

• ODS GRAPHICS

Page 10: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

• ODS LAYOUT is production with SAS9.4

• ODS LAYOUT ABSOLUTE

• Only for printer destination

• Full control over where to place output on the paper

• Region may contain text, tables

graphics, images

ODS LAYOUT

Page 11: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

•ODS LAYOUT GRIDDED

• Supported with HTML, SASREPORT, PRINTER and POWERPOINT destination

• you specify columns and rows

• Column span and row span supported

• Example has 2 columns and 4 rows

ODS LAYOUT

ods_layout_gridded

Col span

Row

span

Page 12: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d .

•Proc SGPANEL

• Supports many different plot types

• Automatically creates panels based on class

variables

SG… PROCEDURES

Page 13: SAS® 9.4 –WHAT‘S NEW IN SAS...Title SAS Academic Conference - SAS 9.4 What's new in SAS - 27March14 Created Date 4/22/2014 3:35:43 PM

Copyr i g ht © 2012, SAS Ins t i tu t e Inc . A l l r ights reser ve d . www.SAS.com

THANKS FOR YOUR ATTENTION