Basics Of SAS Programming Language

SASTechies [email_address] http://www.sastechies.com
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
SAS file in any library  except Work  indicates that the SAS file is stored permanently  SAS Techies  2009 11/13/09 Permanent SAS Files                                                 Clinic  .  Admit  Clinic  .  Admit2           Temporary SAS File                      Work  .  Test  Temporary SAS File,  One-Level Name                                 Test
[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],SAS Techies  2009 11/13/09 Data Set Name:  CLINIC.INSURE  Member Type:  DATA  Engine:  V8  Created:  10:05 Tuesday, March 30, 1999  Observations:  21  Variables:  7  Indexes:  0  Observation Length: 64     Name    Sex       Age       Weight       Jones     M     48     128.6    Laverne        M     58     158.3    Jaffe     F     .     115.5    Wilson     M     28     170.1
[object Object],[object Object],[object Object],[object Object],A variable's type is either  character  or  numeric .  SAS Techies  2009 11/13/09 Name ------ Policy Total Name Type ---- Num  Num Char Length -----   8   8    20  Format --------- DOLLAR8.2 Informat -------- COMMA10. Label ------------- Policy Number Total Balance Patient Name
SAS Techies  2009 11/13/09 Description Default Length Max Length Variable Name <32 32 characters Value  CHAR NUM 8 bytes 8 bytes 32767 (32Kb) any bytes
SAS Techies  2009 11/13/09 ,[object Object],[object Object],[object Object],[object Object],Missing          values     Name    Sex     Age     Weight        M     48     128.6    Laverne      M     58     158.3    Jaffe     F     .     115.5    Wilson     M     28     170.1
[object Object],SAS Techies  2009 11/13/09 $ASCII w . DATE w . NENGO w . $BINARY w . DATETIME w . PD w.d $VARYING w . HEX w . PERCENT w . $ w . JULIAN w . TIME w . COMMA w.d MMDDYY w . w.d
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],SAS Techies  2009 PROC OPTIONS < option(s)>; RUN; Proc options option=firstobs value; run; 11/13/09 Number|NoNumber Date|nodate Pageno Pagesize Linesize Mprint Mlogic Symbolgen Compress=yes|no BYLINE|NOBYLINE DETAILS|NODETAILS FIRSTOBS= FORMCHAR= FORMDLIM= LABEL|NOLABEL OBS= REPLACE|NOREPLACE SOURCE|NOSOURCE
Default Yearcutoff=1920 SAS Techies  2009 11/13/09 Date Expression Interpreted As 12/07/41 18Dec15 04/15/30 15Apr95 12/07/1941 18Dec2015 04/15/1930 15Apr1995 Date Expression SAS Date Informat Interpreted As 06Oct59 date7.   06Oct1959 17Mar1783 date9.   17Mar1783
[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
[object Object],[object Object],[object Object],SAS Techies  2009 11/13/09
SAS Techies  2009 11/13/09
SAS Techies  2009 11/13/09 NOTE: Invalid data for RecHR in line 14 35-37.   RULE: ----+----1----+----2----+----3----+----4----+----5---  14  2575 Quigley, M 74 152 Q13 11 26 I ID=2575 Name=Quigley, M RestHR=74 MaxHR=152 RecHR=. TimeMin=11 TimeSec=26 Tolerance=I _ERROR_=1 _N_=14  NOTE: 21 records were read from the infile TESTS.   The minimum record length was 45.   The maximum record length was 45.   NOTE: The data set CLINIC.STRESS has 21 observations and 8 variables.   NOTE: DATA statement used:   real time 2.04 seconds   cpu time 0.06 seconds
1 of 25

Recommended

Introduction to SAS by
Introduction to SASIntroduction to SAS
Introduction to SASizahn
8.5K views38 slides
SAS BASICS by
SAS BASICSSAS BASICS
SAS BASICSBhuwanesh Rawat
2.2K views118 slides
Base SAS Statistics Procedures by
Base SAS Statistics ProceduresBase SAS Statistics Procedures
Base SAS Statistics Proceduresguest2160992
5.4K views24 slides
INTRODUCTION TO SAS by
INTRODUCTION TO SASINTRODUCTION TO SAS
INTRODUCTION TO SASBhuwanesh Rawat
1.1K views22 slides
Introduction To Sas by
Introduction To SasIntroduction To Sas
Introduction To Sashalasti
3.6K views84 slides
Utility Procedures in SAS by
Utility Procedures in SASUtility Procedures in SAS
Utility Procedures in SASguest2160992
3.4K views33 slides

More Related Content

What's hot

Data Match Merging in SAS by
Data Match Merging in SASData Match Merging in SAS
Data Match Merging in SASguest2160992
5.5K views22 slides
SAS Macros by
SAS MacrosSAS Macros
SAS Macrosguest2160992
10.4K views51 slides
Base sas interview questions by
Base sas interview questionsBase sas interview questions
Base sas interview questionsDr P Deepak
31K views17 slides
Sas cheat by
Sas cheatSas cheat
Sas cheatimaduddin91
6.3K views2 slides
SAS cheat sheet by
SAS cheat sheetSAS cheat sheet
SAS cheat sheetAli Ajouz
15.9K views29 slides
SAS Programming Notes by
SAS Programming NotesSAS Programming Notes
SAS Programming NotesGnana Murthy A
893 views130 slides

What's hot(20)

Data Match Merging in SAS by guest2160992
Data Match Merging in SASData Match Merging in SAS
Data Match Merging in SAS
guest21609925.5K views
Base sas interview questions by Dr P Deepak
Base sas interview questionsBase sas interview questions
Base sas interview questions
Dr P Deepak31K views
SAS cheat sheet by Ali Ajouz
SAS cheat sheetSAS cheat sheet
SAS cheat sheet
Ali Ajouz15.9K views
Introduction to clinical sas programming by ray4hz
Introduction to clinical sas programmingIntroduction to clinical sas programming
Introduction to clinical sas programming
ray4hz10K views
Understanding SAS Data Step Processing by guest2160992
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
guest216099214.8K views
Learn SAS Programming by SASTechies
Learn SAS ProgrammingLearn SAS Programming
Learn SAS Programming
SASTechies15.9K views
A Roadmap for SAS Programmers to Clinical Statistical Programming by Mohammad Majharul Alam
A Roadmap for SAS Programmers to Clinical Statistical ProgrammingA Roadmap for SAS Programmers to Clinical Statistical Programming
A Roadmap for SAS Programmers to Clinical Statistical Programming
Proc report by eagebhart
Proc reportProc report
Proc report
eagebhart2.4K views
Introduction to SAS Data Set Options by Mark Tabladillo
Introduction to SAS Data Set OptionsIntroduction to SAS Data Set Options
Introduction to SAS Data Set Options
Mark Tabladillo3.3K views

Similar to Basics Of SAS Programming Language

Prog1 chap1 and chap 2 by
Prog1 chap1 and chap 2Prog1 chap1 and chap 2
Prog1 chap1 and chap 2rowensCap
1.1K views68 slides
SAS Commands by
SAS CommandsSAS Commands
SAS CommandsSuvojyoti Chowdhury
787 views20 slides
Sas classes in mumbai by
Sas classes in mumbaiSas classes in mumbai
Sas classes in mumbaiVibrant Technologies & Computers
415 views42 slides
Introduction to-sas-1211594349119006-8 by
Introduction to-sas-1211594349119006-8Introduction to-sas-1211594349119006-8
Introduction to-sas-1211594349119006-8thotakoti
1.2K views84 slides
SAS Internal Training by
SAS Internal TrainingSAS Internal Training
SAS Internal TrainingAmrih Muktiaji
2.4K views139 slides
SAS Online Training by Real Time Working Professionals in USA,UK,India,Middle... by
SAS Online Training by Real Time Working Professionals in USA,UK,India,Middle...SAS Online Training by Real Time Working Professionals in USA,UK,India,Middle...
SAS Online Training by Real Time Working Professionals in USA,UK,India,Middle...Oracle Apps R12, Financials,SCM,PA,HRMSCorporate Training
369 views21 slides

Similar to Basics Of SAS Programming Language(20)

Prog1 chap1 and chap 2 by rowensCap
Prog1 chap1 and chap 2Prog1 chap1 and chap 2
Prog1 chap1 and chap 2
rowensCap1.1K views
Introduction to-sas-1211594349119006-8 by thotakoti
Introduction to-sas-1211594349119006-8Introduction to-sas-1211594349119006-8
Introduction to-sas-1211594349119006-8
thotakoti1.2K views
Improving Effeciency with Options in SAS by guest2160992
Improving Effeciency with Options in SASImproving Effeciency with Options in SAS
Improving Effeciency with Options in SAS
guest21609922.4K views
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008 by untellectualism
8323 Stats - Lesson 1 - 03 Introduction To Sas 20088323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
untellectualism410 views
BAS 150 Lesson 4 Lecture by Wake Tech BAS
BAS 150 Lesson 4 LectureBAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 Lecture
Wake Tech BAS164 views
Draft sas and r and sas (may, 2018 asa meeting) by Barry DeCicco
Draft sas and r and sas (may, 2018 asa meeting)Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)
Barry DeCicco219 views
Hechsp 001 Chapter 2 by Brian Kelly
Hechsp 001 Chapter 2Hechsp 001 Chapter 2
Hechsp 001 Chapter 2
Brian Kelly6.7K views
Sas-training-in-mumbai by Unmesh Baile
Sas-training-in-mumbaiSas-training-in-mumbai
Sas-training-in-mumbai
Unmesh Baile267 views
Sas Talk To R Users Group by georgette1200
Sas Talk To R Users GroupSas Talk To R Users Group
Sas Talk To R Users Group
georgette1200625 views
Introduction to SAS by Imam Jaffer
Introduction to SASIntroduction to SAS
Introduction to SAS
Imam Jaffer1.1K views

Recently uploaded

Piloting & Scaling Successfully With Microsoft Viva by
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft VivaRichard Harbridge
13 views160 slides
Business Analyst Series 2023 - Week 3 Session 5 by
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5DianaGray10
345 views20 slides
virtual reality.pptx by
virtual reality.pptxvirtual reality.pptx
virtual reality.pptxG036GaikwadSnehal
18 views15 slides
Uni Systems for Power Platform.pptx by
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
58 views21 slides
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc
72 views29 slides
PRODUCT LISTING.pptx by
PRODUCT LISTING.pptxPRODUCT LISTING.pptx
PRODUCT LISTING.pptxangelicacueva6
18 views1 slide

Recently uploaded(20)

Piloting & Scaling Successfully With Microsoft Viva by Richard Harbridge
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft Viva
Business Analyst Series 2023 - Week 3 Session 5 by DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10345 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc72 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab23 views
HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn26 views
Case Study Copenhagen Energy and Business Central.pdf by Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana17 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software317 views
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2218 views
The Forbidden VPN Secrets.pdf by Mariam Shaba
The Forbidden VPN Secrets.pdfThe Forbidden VPN Secrets.pdf
The Forbidden VPN Secrets.pdf
Mariam Shaba20 views

Basics Of SAS Programming Language

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. SAS file in any library except Work indicates that the SAS file is stored permanently SAS Techies 2009 11/13/09 Permanent SAS Files                                                 Clinic . Admit Clinic . Admit2          Temporary SAS File                      Work . Test Temporary SAS File, One-Level Name                                 Test
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. SAS Techies 2009 11/13/09 Description Default Length Max Length Variable Name <32 32 characters Value CHAR NUM 8 bytes 8 bytes 32767 (32Kb) any bytes
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. Default Yearcutoff=1920 SAS Techies 2009 11/13/09 Date Expression Interpreted As 12/07/41 18Dec15 04/15/30 15Apr95 12/07/1941 18Dec2015 04/15/1930 15Apr1995 Date Expression SAS Date Informat Interpreted As 06Oct59 date7. 06Oct1959 17Mar1783 date9. 17Mar1783
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. SAS Techies 2009 11/13/09
  • 25. SAS Techies 2009 11/13/09 NOTE: Invalid data for RecHR in line 14 35-37. RULE: ----+----1----+----2----+----3----+----4----+----5--- 14 2575 Quigley, M 74 152 Q13 11 26 I ID=2575 Name=Quigley, M RestHR=74 MaxHR=152 RecHR=. TimeMin=11 TimeSec=26 Tolerance=I _ERROR_=1 _N_=14 NOTE: 21 records were read from the infile TESTS. The minimum record length was 45. The maximum record length was 45. NOTE: The data set CLINIC.STRESS has 21 observations and 8 variables. NOTE: DATA statement used: real time 2.04 seconds cpu time 0.06 seconds

Editor's Notes

  1. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  2. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  3. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  4. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  5. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  6. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  7. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  8. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  9. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  10. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  11. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  12. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  13. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  14. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  15. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  16. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  17. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  18. SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  19. SASTechies.com Sharad C Narnindi - Attic Technologies 2005