0% found this document useful (0 votes)
5 views

read first

The document outlines the new features and enhancements introduced in SAS 9.3, including changes to default output behavior, updated procedures, and new macro features. Key updates include the integration of all output into HTML format, enhancements to ODS graphics, and the introduction of new SAS macro variables. Additionally, it highlights the compatibility of SAS 9.3 with Enterprise Guide 4.3 and improvements in statistical graphics capabilities.

Uploaded by

Kandy B
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

read first

The document outlines the new features and enhancements introduced in SAS 9.3, including changes to default output behavior, updated procedures, and new macro features. Key updates include the integration of all output into HTML format, enhancements to ODS graphics, and the introduction of new SAS macro variables. Additionally, it highlights the compatibility of SAS 9.3 with Enterprise Guide 4.3 and improvements in statistical graphics capabilities.

Uploaded by

Kandy B
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

What’’sNewinSAS9.3?

ChrisGibby,OCSConsulting,Netherlands

www.ocsͲconsulting.com/nl 1

©OCSConsulting
Agenda
 SASreleasessinceSAS9.1.3

 What’’snewͲ overview

 Changestothedefaultoutput

 Summaryofupdatedprocedures

 Additionalchanges

 NewSASmacrofeatures

 ODSgraphics

 EnterpriseGuide4.3

www.ocsͲconsulting.com/nl 2

©OCSConsulting
SASreleasessinceSAS9.1.3
SAS9.1.3їSAS9.2:
Significantchangesandenhancements.Thiswasamajor
upgrade.

SAS9.2їSAS9.3:
BuildingontheupgradestoSAS9.2,whilenotamajorupdate,it
isstillasignificantupgradeinitsownright.

What’’snewinSAS9.3:
MostattentiongiventonewfeaturesinSAS9.3,insomecasesit
isalsorelevanttohighlightchangessinceSAS9.1.3.

www.ocsͲconsulting.com/nl 3

©OCSConsulting
What’’snewͲ overview
 Changestothedefaultoutputbehaviour–– alloutputnowin
HTML

 SAS/GRAPHlicensenolongerrequiredforODSgraphics

 EnhancementsandfixestonumerousPROCs

 MorefacilitiesinSASMacro

 Newsystemoptions

www.ocsͲconsulting.com/nl 4

©OCSConsulting
Changestothedefaultoutput
Previous Default New Default in SAS 9.3

OutputDestination LISTING HTML

DefaultstyleforHTML Styles.Default Styles.HTMLBlue


destination
ODSGraphics OFF ON

Wheregraphsaresaved Current SAS directory SAS Work Library

Advantages:
1. Graphsareintegratedwithtables
2. AlloutputdisplayedinthesameHTMLfile
3. Newstyleforoptimumpresentation

www.ocsͲconsulting.com/nl 5

©OCSConsulting
Changestothedefaultoutput

www.ocsͲconsulting.com/nl 6

©OCSConsulting
Summaryofupdatedprocedures
PROCCIMPORT PROCGPLOT PROCREPORT

PROCCORR PROCOPTIONS PROCSORT

PROCCPORT PROCPRINT PROCSQL

PROCFCMP PROCPRINTTO PROCTABULATE

PROCFORMAT PROCRANK PROCUNIVARIATE

PROCFREQ PROCREGISTRY

www.ocsͲconsulting.com/nl 7

©OCSConsulting
Summaryofupdatedprocedures
PROCCPORTandPROCCIMPORT
ThefollowingenhancementshavebeenmadetoCPORTand
CIMPORT:

 TheSELECTandEXCLUDEstatementsnowsupportcase
sensitivenamesforfilesandcatalogs.

 SupportSASnameliteralsthatincludeembeddedblanks.

 WhenVALIDVARNAME=ANYorVALIDMEMNAME=EXTEND
arespecified,thedataset/membernamescanbeupto32
bytesinlengthandalsomixedcase.

www.ocsͲconsulting.com/nl 8

©OCSConsulting
Summaryofupdatedprocedures
PROCSORT
ThefollowingoptionshavebeenaddedtotheSORTprocedure:

NOUNIQUEKEY eliminatesobservationsthat
haveauniquesortkey.
NOUNIQUEREC eliminatesobservationsthatare
adjacentlyunique.
UNIQUEOUT=dataset specifiestheoutputdatasetfor
eliminatedobservations.

www.ocsͲconsulting.com/nl 9

©OCSConsulting
Summaryofupdatedprocedures
PROCFORMAT
ThefollowingenhancementshavebeenmadetotheFORMAT
procedure:

 UsetheVALUE=statementtocreateaformatthatperforms
afunctiononavalue.

 YoucannowuseSASExplorertoviewformatandinformat
definitions.

www.ocsͲconsulting.com/nl 10

©OCSConsulting
Summaryofupdatedprocedures
PROCFORMAT–– Userfunction

PROC FCMP outlib=work.functions.smd;


function ctof(c) $;
return(cats(((9*c)/5)+32,'F'));
endsub;
run;

options cmplib=(work.functions);

PROC FORMAT;
value ctof (default=10) other=[ctof()];
run;

data _null_;
c=100;
put c=ctof.;
Run;

www.ocsͲconsulting.com/nl 11

©OCSConsulting
Summaryofupdatedprocedures
TheGPLOTProcedure
TheGPLOTprocedurehasthefollowingchangesand
enhancements:

 TheHTML=optionenablesyoutoidentifythevariableina
bubbleplotdatasetwhosevaluecreatesalinktoanHTML
filegeneratedbyODS.

 ThenewURL=optionisavailableinthePLOTstatement.This
optionenablesyoutospecifyavariablewhosevaluesare
theURLsofWebpagestobedisplayedwhentheuserclicks
onelementsinthegraph.

www.ocsͲconsulting.com/nl 12

©OCSConsulting
Summaryofupdatedprocedures
TheGPLOTProcedure

www.ocsͲconsulting.com/nl 13

©OCSConsulting
Additionalchanges
Createnewdirectorieswiththelibnamestatement

Options DLCREATEDIR;

libname newdir 'c:\temp\newdir';

libname mltidir 'c:\temp\lev1\lev2'; X

libname mltidir1 'c:\temp\lev1';


libname mltidir2 'c:\temp\lev1\lev2'; 9

www.ocsͲconsulting.com/nl 14

©OCSConsulting
Additionalchanges
AuditingofSASlibrariesͲ Loggingfacility
IntroducedinSAS9.2,nowalsoallowsforauditofSASlibraries.
YoucanobtainthefollowinginformationaboutaSASlibrary:

 thelibref

 theengineassociatedwiththelibrary

 thelibrarymembername

 thelibrarymembertype,suchascatalogordataset

 themodethatthelibrarywasopenedfor:INPUT,OUTPUT,
UPDATE

 thepathtothelibraryortoadatabasetable

www.ocsͲconsulting.com/nl 15

©OCSConsulting
Additionalchanges
ResettingthelinenumberintheSASlog
Simplyaddthefollowingstatementinbetweendatastepsand
procedures: resetline;

www.ocsͲconsulting.com/nl 16

©OCSConsulting
NewSASmacrofeatures
Newautomaticmacrovariable:
 SYSNOBS containsthenumberofobservationsread
fromthelastdatasetthatwasclosedby
thepreviousstep.
Newmacrofunctions:
 %SYSMACEXEC indicateswhetheramacroiscurrently
executing.
 %SYSMACEXIST indicateswhetherthereisamacro
definitioninthework.sasmacrcatalogue.
 %SYSMEXECDEPTH returnsthedepthofnestingfromthe
pointofcall.
 %SYSMEXECNAME returnsthenameofthemacroexecuting
atanestinglevel.
Newmacrosystemoption:
 MAUTOCOMPLOC enablesthedisplayofthesourcelocation
ofautocallmacrosintheSASlog.
www.ocsͲconsulting.com/nl 17

©OCSConsulting
ODSGraphics
Statisticalgraphics(SG)&Graphtemplatelanguage(GTL)

 FirstintroducedinSAS9.2

 NewupdatesandenhancementsforSAS9.3

 Specificallydesignedforcreatingstatisticalgraphics

 NewPROCs:SGPLOT,SGSCATTER,SGPANEL

 GTListheunderlyinglanguageusedforstatisticalgraphics

 UserscanwritetheirownGTLtemplatesforpowerfuland
flexiblegraphs

www.ocsͲconsulting.com/nl 18

©OCSConsulting
ODSGraphics
Newannotationfeature(preͲproduction)

www.ocsͲconsulting.com/nl 19

©OCSConsulting
ODSGraphics
Newannotationfeature(preͲproduction)

www.ocsͲconsulting.com/nl 20

©OCSConsulting
ODSGraphics
SCALABLEVECTORGRAPHICS(SVG)

 TheHTML,PDF,PCLandLISTINGdestinationsfromODSnow
supportScalableVectorGraphics.
 SVGfilescanbezoomedinandoutwithoutlosinganydetail.
 Notpossiblewithjpegandgiffiles,theseareonesizeonly.
goptions reset=all device=svg;

ods html file=“svgtest.htm”;


data hat;
do x=-5 to 5 by .25;
do y=-5 to 5 by .25;
z=sin(sqrt(x*x+y*y));
output;
end;
end;
run;

proc g3d data=hat;


plot y*x=z/ctop=red;
run;
quit;
ods html close;

www.ocsͲconsulting.com/nl 21

©OCSConsulting
ODSGraphics
SCALABLEVECTORGRAPHICS(SVG)

www.ocsͲconsulting.com/nl 22

©OCSConsulting
EnterpriseGuide4.3
 EG4.3firstintroducedwithSAS9.2

 SAS9.3onlycompatiblewithEG4.3(andmorerecently5.1)

 Newprogrameditorwithautocompleteandintegrated
syntaxhelp

 AbilitytoanalyseSASprograms

www.ocsͲconsulting.com/nl 23

©OCSConsulting
REFERENCES
OCSDocumentation:
 What'sNewinSAS9.2
 What'sNewinSAS9.3

SASInstituteDocumentation
 What’’sNewinSAS9.2
http://support.sas.com/documentation/cdl/en/whatsnew/62580/PDF/default/whats
new.pdf
 What’’sNewinSAS9.3
http://support.sas.com/documentation/cdl/en/whatsnew/64209/PDF/default/whats
new.pdf

 NowYouCanAnnotateYourStatisticalGraphicsProcedure
GraphsͲ DanHeath
http://support.sas.com/resources/papers/proceedings11/277Ͳ2011.pdf

www.ocsͲconsulting.com/nl 24

©OCSConsulting

You might also like