1. base programming - le site web des mathématiques du...
TRANSCRIPT
![Page 1: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/1.jpg)
1.BaseProgramming
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 10
![Page 2: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/2.jpg)
WhatisSAS
• Highlyflexibleandintegratedsokwareenvironment;youcanuseSASfor:
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 11
![Page 3: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/3.jpg)
BaseSAS
Thefounda+onofSASsokwareiscalledBaseSAS.
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 12
![Page 4: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/4.jpg)
ThiscourseassumesthatyouarerunningBaseSASsokwareinthewindowingenvironment
WhichprogrammingworkspaceamIusing?• Help->About
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 13
![Page 5: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/5.jpg)
Setupprac+cedata
TocreateapermanentSASlibrarynamedsasuser:
• Help->LearningSASprogramming->OK
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 14
![Page 6: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/6.jpg)
SASprogram
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 15
ASASprogramisadatafilethatisformabedinawaythatSAScanunderstand.Itcanconsistofoneormoresteps:aDATAstep,aPROCsteporanycombina1onofthetwo
![Page 7: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/7.jpg)
DATAstep
YouuseaDATAstepto:- PutyourdatainaSASdataset- Computevalues- Checkforandcorrecterrorsinyourdata- ProducenewSASdatasetsbysubsepng,
supersepng,mergingandupda+ngexis+ngdata
WithaDATAstepyoucancreateormodifydatasets:
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 16
![Page 8: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/8.jpg)
PROCStepInvokepre-wribenrou+nesthatenableyoutoanalyzeandprocessthedatainaSASdataset
YoucanusePROCstepsto:- Createareportthatliststhedata- Producedecrip+vesta+s+cs- Createasummaryreport- Produceplotandchart
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 17
![Page 9: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/9.jpg)
Generallyaprograminvolvesacombina+onofthetwostepslikethis:
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 18
![Page 10: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/10.jpg)
SASStatements
19GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming»
ASASprogramconsistsofstatementsASASstatement:- UsuallybeginswithaSASkeyword- Alwaysendswithasemicolon
![Page 11: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/11.jpg)
ASASprogram
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 20
![Page 12: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/12.jpg)
UnderstandingaSASprogram• Treesteps..
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 21
![Page 13: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/13.jpg)
..13statements..
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 22
![Page 14: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/14.jpg)
..Amongthemtwoglobalstatements:
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 23
- Globalstatementsareall-alone-statements.- YoucanuseglobalstatementsanywhereinaSASprogram.- Globalstatementsarenotexecutable;theytakeeffectassoonasSAScompilesprogramstatements.
![Page 15: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/15.jpg)
SASstatementsarefreeformat
- Theycanbeginandendanywhereonaline- Astatementcancon+nueonseverallines- Severalstatementscanbeonthesameline- BlanksorspecialcharactersseparatewordsinaSASstatement
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 24
![Page 16: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/16.jpg)
Bounderiesofastep:- AstepbeginsbyDATAorPROCstatements- AstependsbyRUNorQUITstatement(althoughtheRUNstatementisnotalways
requiredbetweensteps,usingitcanmaketheSASprogrameasiertoreadanddebug)- Atthestepboundary,SAS:i)executesanystatementsthathavenotpreviously
executedii)endsthestep
ProcessingaprogramDATAsasuser.admit2;SETsasuser.admit;WHEREage>39;RUN;PROCPRINTDATA=sasuser.admit2;RUN;
StepsaresubmibedinEnhancedEditororinProgramEditorwindows
Whenyousubmitaprogram,SASexecutesitstepbystep.
- AlogisgeneratedintheLogwindow(forbothPROCandDATAsteps)
- ReportsaregeneratedinOutput(asalist)andinResultsViewer(inHTML)windows
formostofPROCsteps(excep+ons:copy,sort...).YoucanfindreportsalsoinResultswindow. GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 25
![Page 17: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/17.jpg)
ReportWindow
PROCREPORTDATA=sasuser.admitWINDOWS;COLUMNSidnamssexageactlevel;
RUN;
SomeSASprogramopenaninterac+vewindow,suchasaREPORTwindow.Youcanusethiswindowtodirectlymodifydata
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 26
![Page 18: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/18.jpg)
Programmingworkspace:EditorWindows
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 27
![Page 19: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/19.jpg)
Programmingworkspace:EditorWindows
EnhancedEditorFeatures:- OpeningSASprograms- Entering,edi+ngandsubmipngSAS
programs- Usingthecommandlineormenus- SavingSASprograms- Clearingcontents
- ColorCodingandsintaxchecking- Expandableandcollapsibilesec+ons- Recordablemacros- Supportforkeyboardshortcuts- Mul+-levelundoandredo
ProgramEditorFeatures:- OpeningSASprograms- Entering,edi+ngandsubmipngSAS
programs- Usingthecommandlineormenus- SavingSASprograms- Clearingcontents
- RecallingSubmibedstatements
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 28
Forclearanyofthesewindows,whenthewindowisac+ve:Edit->Clearall
![Page 20: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/20.jpg)
SepngresultformatsTwoformats:Lis+ngandHTML.Differentversions,differentdefault.- BothHTMLandLISTINGarethedefaultinSAS9.3inWindowsandUNIX- JustHTMListhedefaultinSAS9.4inWindowsandUNIX
- Inotherplavorms,youhavejustLISTINGmode,butyoucancreateHTMLoutputusingprogrammingstatements
- YoucanchoosetoshowtheHTMLoutputinanotherbrowser
Tools->Op+ons->Preferences->Results
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 29
![Page 21: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/21.jpg)
TheLogwindows- TheLogwindowdisplaysmessagesaboutyourSASsessionandaboutanySAS
programsthatyousubmit.- Todisplaythiswindow:View->Log- Toclearthiswindow:Edit->Clearall
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 30
![Page 22: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/22.jpg)
Theoutputwindows- TheOutputandResultViewerwindowslistoutputfromSASprogramthatyou
submit.- OutputshowsresultsinLISTINGmode,ResultsViewershowsresultsinHTML
mode- Bydefaulttheyarebehindtheeditorandthelogwindows.Whenyoucreate
output,theyautoma+callymovetothefrontofyourdisplay(OutputbehindResultViewer).
- Todisplayoutputwindow:View->Output
- TheResultswindowlistsandarrangesinatreestructuretheoutput.- Itallowsbrowsingoutputeasily- Itallowsviewing,savingandprin+ngindividualitemsofoutput- ItdislaysseparateiconsforLISTINGandHTMLoutputs- Todisplaythiswindow:View->ResultsGIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 31
![Page 23: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/23.jpg)
TheexplorerwindowTheExplorerwindowallowsyouto- ViewandmanageSASfiles(inthelibraries)butalsonon-SAS(external)files.- CreatenewlibrariesandSASfiles- Moving,copinganddele+ngfiles- Createshortcutstoexternalfiles.- Todisplaythiswindow:View->Explorer
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 32
![Page 24: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/24.jpg)
SASLibraries- ASASlibraryisa
collec+onofSASfiles
storedinthesame
directory
- TemporarySASlibrarieslastonly
forthecurrentsession
- PermanentSASLibrariesare
availableduringsubsequent
sessions
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 33
![Page 25: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/25.jpg)
ReferringaSASdataset
libref Filename
Theyrefertothesame(temporary)library
Twolevel(dividedbyaperiod)names:
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 34
![Page 26: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/26.jpg)
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 35
Ifyoudon’tspecifyalibrarynamewhenyoucreateafile(oryouspecifythelibrarynameWork),thefileisstoredinthetemporarySASdatalibrary
![Page 27: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/27.jpg)
RulesforSASfilenamesandlibref
Filename- Canbe1to32characterslong
- Mustbeginwithaleber(uppercaseorlowercase)oranunderscore
- Cancon+nuewithanycombina+onofnumbers,lebersorunderscores
Ex:Payroll,LABDATA1995_1997,E+matedTaxPayments3
Libref- Canbe1to8characterslong
- Mustbeginwithaleber(uppercaseorlowercase)oranunderscore
- Cancon+nuewithanycombina+onofnumbers,lebersorunderscores
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 36
![Page 28: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/28.jpg)
SASDatasets
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 37
ASASDatasetisafilethatconsistsoftwoparts:
adescriptorpor0on
and
adatapor0on
![Page 29: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/29.jpg)
Descrip+onpor+onPROCCONTENTSDATA=sasuser.insure;RUN;
- Nameofthedataset
- Dateand+methedatasetwascreated
- Thenumberofobserva+ons
- Thenumberofvariables
- Theproper1es(aKributes)ofeachvariable
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 38
![Page 30: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/30.jpg)
VariableAbributes:Name
VariableName,astheFileName:
- Canbe1to32characterslong
- Mustbeginwithaleber(uppercaseorlowercase)oranunderscore
- Cancon+nuewithanycombina+onofnumbers,lebersorunderscores
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 39
![Page 31: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/31.jpg)
VariableAbributes:Type
- Cancontainanyvalues
- Ablankrepresentsamissingvalueforcharactervariables
- Cancontainonlynumericvalues
- Aperiodrepresentsamissingvaluefornumericvariables
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 40
![Page 32: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/32.jpg)
VariableAbributes:LengthLengthismeasuredinbytes
(1character->1byte)
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 41
Numericvariablesarestoredbydefaultin8bytes
![Page 33: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/33.jpg)
Variableabributes:Format&Informat
FormatindicateshowadatavalueisdisplayedbySASEx:Todisplaythevalue1234as$1,234.00youcanusetheDOLLAR8.2format
InformatindicateshowarawdatavalueisreadbySASinordertobeconvertedinaSASdatavalueEx:$12,345.00containstwospecialcharacters.Youcanuseinformatop+onCOMMA10.forremovingdollarsymbolandcomma,inordertostore12345asanumericvalue
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 42
![Page 34: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/34.jpg)
Variableabributes:Label
Thelabelisadescrip+vetextupto256characterlong
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 43
![Page 35: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/35.jpg)
Datapor+on
PROCPRINTDATA=sasuser.insurenoobs;RUN;
Itisacollec+onofvaluesarrangedinarectangulartable
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 44
![Page 36: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/36.jpg)
FileShortcutsYoucancreateafileshortcuttoanexternalfileandstoreitintheFileShortcutsfolderintheExplorerwindow.- filerefisanop+onalnamethatisusedtoiden+fyanexternalfileinSAS.- youcanuseafileshortcuttoopenbrowseandsubmitafile- Whenyoudeleteafileshortcut,thepointertothefileisdeleted.Howeverthe
files+llexistsinitsphysicalloca+on
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 45
![Page 37: 1. Base Programming - Le site web des Mathématiques du …maths.cnam.fr/IMG/pdf/SAS_01_cle49c4eb.pdf · 1. Base Programming GIORGIO RUSSOLILLO - Cours de préparaon à la cer+ficaon](https://reader031.vdocuments.mx/reader031/viewer/2022013006/5a9db6397f8b9aee528b98ab/html5/thumbnails/37.jpg)
HelpUsingthiswindowisataskorientedhelpreferringtotheac+vewindow.Otherop+onsofthehelpmenu:- SAShelpandDocumenta+on(completeguidetoSAS)- Gepngstartedtutorials- LearningSASprogramming(createdatasetusedintraining)- SASontheweb(technicalsupport)
GIORGIORUSSOLILLO-Coursdeprépara+onàlacer+fica+onSAS«BaseProgramming» 46