read first
read first
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
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
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
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;
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;
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