new features in foundation sas 9 gary, bugs_whatsnew... · export sas data sets to excel 2010...
Post on 10-Apr-2018
226 Views
Preview:
TRANSCRIPT
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
NEW FEATURES IN FOUNDATION SAS 9.4
DECEMBER 4, 2013
Gary T. Ciampa
SAS® Solutions OnDemand Advanced Analytics Lab
Birmingham Users Group 2013
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
FOUNDATION SAS
9.4 FEATURES FOCUS ON SAS 9.4 FOUNDATION FEATURES
• Base SAS
• SAS/ACCESS Interface to PC Files
• SAS/CONNECT
• SAS/GRAPH
Agenda
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
Simplify Innovate Enable
Natural interfaces for
mobile & tablets
devices
Enhanced Security,
Consistency &
Optimizations
Performance
Compliance &
Extensibility
SAS 9.4 CORE THEMES
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
BASE SAS PROGRAMMING LANGUAGES
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
BASE SAS DS2 AND FEDSQL LANGUAGE ELEMENTS
• DS2 Language Key Features
• Component of BASE SAS
• Integrates with the SAS DATA STEP
• ANSI SQL Types
• Well defined programming structure
• User defined methods
• FEDSQL Language Key Features
• ANSI SQL: 1999 compliant
• Enhanced data types, DECIMAL, INTEGER and
VARCHAR
• Expanded DBMS interfaces
• Parallel Processing
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
BASE SAS DS2
PROGRAMMING DS2 SEMANTICS AND COMPONENTS
• DS2 is complementary to data step
• Simplified execution framework which results in faster execution
• Threading semantics built into the language statements
• Object Oriented style, init(), run() and term() methods
• Supports FedSQL statements
• Expanded Data Types (precision, accuracy, compatibility)
• Benefits: performance, large data requirements, data types
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2 SAMPLE SYNTAX
data _null_;
str = 'Hello World!';
put str;
run;
quit;
• SAS DATA STEP THAT WE KNOW AND LOVE.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2
proc ds2;
data _null_;
method init();
dcl varchar(16) str;
str = 'Hello World!';
put str;
end;
enddata;
run;
quit;
• SAS DATA STEP ENHANCED WITH DS2
SAMPLE SYNTAX
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
DS2 SUMMARY
The DS2 Procedure
• The DS2 procedure enables you to submit DS2 language statements from a
Base SAS session.
• In addition, DATA step logic can be transformed to run in environments where
DS2 is supported and the DATA step is not. These environments include the
following:
• SAS Federated Server
• SAS LASR Analytic Server
• SAS Embedded Process
• SAS Enterprise Miner
• SAS Decision Services
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
FEDSQL FEDSQLPROCEDURE
• FEDSQL from within BASE SAS, conforms to ANSI SQL 1999 standard
• SQL 1999 ANSI standard conformance allows queries in the native data type of the
DBMS. Native data types result in faster processing
• FedSQL supports multiple data source queries and aggregation of results
libname mybase base 'C:\Base';
libname myspde spde 'C:\Spde';
proc fedsql;
select * from mybase.product, myspde.sales;
quit;
• FedSQL distributes queries in parallel across multiple data sources
• FedSQL explicit pass-through facility enables connecting directly to the DBMS
• FedSQL implicit pass-through translates SQL into the native SQL language.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OUTPUT OUTPUT DELIVERY SYSTEM
SAS 9.4 Output Delivery System Enhancements
• ODS Report Writing Interface (RWI)
• create and manipulate predefined ODS objects within data step
• create highly customized output
• ODS grid layout for dynamic placement of objects within the layout
• SAS 9.4 Output Destinations
• Microsoft PowerPoint export
• EPUB
• HTML5
• Animate multi-page GIF images and SVG files by setting system options.
• New HTML default style was introduced for DMS in 9.3, now also default for
batch processing
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS ODS
POWERPOINT
TwoContent layout
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS ODS EPUB
Output SAS
Reports to eBook
format to be
viewed on iPad &
iPhone
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
EPUB DESTINATION EXAMPLE
ods epub file="glm.epub" title="My First ODS EPUB E-book"
options(creator="SAS Programmer" description="My First ODS
EPUB Book" subject="PROC GLM" type="ODS EPUB book");
ods graphics on;
proc glm data=DrugTest;
class Drug;
model PostTreatment = Drug|PreTreatment;
run;
quit;
ods epub close;
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
EPUB DESTINATION SAMPLE OUTPUT
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OUTPUT ODS STATISTICAL GRAPHICS
Enhancements to ODS Graphics provide
• Several new plot types, including axis tables that create an axis-aligned row
or column of textual data.
• The addition of numerous plot layout, panel, and axis options to control and
enhance the output of your graphs.
• A new sub-pixel rendering feature provides smoother curves for line charts
and more consistent spacing in bar charts.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OUTPUT ODS STATISTICAL GRAPHICS
Additional Information:
• The ODS Graphics products provide more options for fitting or splitting data
labels, curve labels, and axis tick values when there is not enough room to
display the text normally.
• The ODS Graphics Designer introduces an Auto Charts feature that
generates a variety of graphs automatically, based on your data.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
AXISTABLE
STATEMENT AXIS ALIGNED TEXT VALUES
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SECURITY
• SAS/SECURE integrated into Base SAS.
• Uses the industry standard Advanced Encryption Standard (AES) with 64-bit salt
• On-disk data encryption with associated keys
• SAS004 encryption style
• Metadata-bound libraries universally enforce metadata-layer permission
requirements for physical tables—regardless of how a user requests access
from SAS – closing the “LIBNAME hole”
• A metadata-bound library is a physical library that is tied to a corresponding
metadata object.
The AUTHLIB procedure is a new utility procedure that enables you to manage
metadata-bound libraries. (See Create Statement)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
EXTENDED
ATTRIBUTES XATTR PARAMETERS FOR SAS TABLES AND VARIABLES
XATTR values are customized metadata for your SAS tables and variables
• Defined per table or variable
• Are organized into (name, value) pairs
• NUMERIC or CHARACTER properties
• PROC DATASETS to manage extended attributes
• SAS7BXAT table name
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
EXTENDED
ATTRIBUTES EXAMPLE
data mysales;
purchase = "car"; age = 37; cars = 3;
run;
proc datasets nolist ;
modify mysales;
xattr add ds mylabel=“This label can be as long
as I need it to be, with lots
of details about this data set.”;
xattr add var age ( mean = 30 )
cars ( maker = “Ferrari” models=4 );
run;
quit;
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OTHER NEW
FEATURES
The Work library data sets and catalogs, and the values of global statements,
macro variables, and system options can be preserved between SAS
sessions.
The PRESENV Procedure
• The PRESENV procedure preserves all global statements and macro
variables in your SAS code from one SAS session to another.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OTHER NEW
FEATURES JSON EXPORT SUPPORT
SAS data sets can be written to an external file in JSON representation.
The JSON Procedure
• The JSON procedure reads data from a SAS data set and writes it to an
external file in JSON representation.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OTHER NEW
FEATURES STREAMING
SAS now processes arbitrary text that contains SAS macro specifications in an
input stream. The macro code in the stream can be expanded and stored in a
file.
The STREAM Procedure
• The STREAM procedure enables you to process an input stream that
consists of arbitrary text that can contain SAS macro specifications. It can
expand macro code and store it in a file.
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
OTHER NEW
FEATURES UTC TIME ZONE SUPPORT
• The SAS language now supports time zones based on Universal Time
Coordinate (UTC).
Data sets and catalog time stamps can specify the time based on a specific time
zone.
SAS can also determine the time for an area, taking into account Daylight Savings
Time.
• UTC Feature Support Functions
• TZONEID
• TZONENAME
• TZONEOFF
• TZONES2U
• TZONEU2S
• SAS OPTION TIMEZONE=
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/ACCESS TO PC FILE FORMATS
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
XLSX FILES MICROSOFT EXPORT ENHANCEMENTS
• Key goals to augment ability to promote data to business consumers
• Export directly to an XLSX workbook or worksheet
• Update or Replace Semantics
• Export XLSX files directly to UNIX
• DBMS=XLSX to distributed environments without requirement for PC Files
Server (UNIX, WIN)
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
EXAMPLE EXPORT SAS DATA SETS TO EXCEL 2010 WORKBOOK AND
REPLACE SHEETS
LIBNAME SDF V9 "&sasdir“;
PROC EXPORT DATA=SDF.INVOICE
FILE="&tmpdir.text.xlsx"
DBMS=XLSX REPLACE;
SHEET=’Invoice’;
RUN;
PROC EXPORT DATA=SDF.ORDERS
FILE="&tmpdir.text.xlsx”
DBMS=XLSX REPLACE;
SHEET=’Orders’;
RUN;
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
EXAMPLE EXPORT SAS DATA SETS TO EXCEL 2010 WORKBOOK AND
ADD A NEW SHEET
LIBNAME SDF V9 "&sasdir“;
PROC EXPORT DATA=SDF.INVOICE
FILE="&tmpdir.text.xlsx"
DBMS=XLSX;
SHEET=’Invoice_%2013’;
RUN;
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/CONNECT DISTRIBUTED SAS EXECUTION FRAMEWORK
• SAS/CONNECT ENHANCEMENTS
• CONNECTEVENTS system option
• Enhanced logging framework options, LOG4SAS
• PROC DATASETS XATTR support
• Client/Server Session Encoding
• SAS/Connect Spawner command options
new spawner start-up options,
a new spawner interface, and
a new spawner executable file that is the same for each operating environment
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH SELECTED ENHANCEMENTS
• Unified default style for BATCH and DMS run modes (HTMLBLUE)
• New Graph styles (DOVE and RAVEN)
• The GIF device now supports RGBA color mode (transparency) and anti-
aliasing.
• The SVG and GIF devices now support animation.
• Maps data sets have been updated
• The GEOCODE procedure now supports non-U.S. street geocoding
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH DEFAULT STYLE
New Default Style for batch mode
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH ANTI-ALIASING
• The GIF device now supports RGBA color mode (transparency) and anti-
aliasing.
• SAS 9.3 PNG support incorporated anti-aliasing
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH GIF ALPHA-TRANSPARENCY
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH BETTER GIF ANIMATIONS
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH MAPSGFK LIBRARY
• MAPS, MAPSSAS library still exist for compatibility
• MAPSGFK – additional map library format
• Long name formats; Accuracy Improvements; EastLong v. WestLong
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
SAS/GRAPH GEOCODE UPDATES
• The GEOCODE procedure now supports non-U.S. street geocoding
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d .
RESOURCES
• Online documentation:
http://support.sas.com/documentation/onlinedoc/base/index.html
• ODS EPUB Destination
http://support.sas.com/resources/papers/proceedings13/368-2013.pdf
• ODS PowerPoint Destination
http://support.sas.com/resources/papers/proceedings13/041-2013.pdf
Copyr i g ht © 2013, SAS Ins t i tu t e Inc . A l l r ights reser ve d . sas.com
THANK YOU FOR ATTENDING!
top related