SlideShare a Scribd company logo
SASTechies [email_address] http://www.sastechies.com
DATA steps  typically create or modify SAS data sets, but they can also be used to produce custom-designed reports. For example, you can use DATA steps to  put your data into a SAS data set  compute the values for new variables  check for and correct errors in your data  produce new SAS data sets by sub-setting, merging, and updating existing data sets.  PROC (procedure) steps  typically analyze and process data in the form of a SAS data set, and they sometimes create SAS data sets that contain the results of the procedure. PROC steps control a library of prewritten routines (procedures) that perform tasks on SAS data sets, such as listing, sorting, and summarizing data. For example, you can use PROC steps to  print a report  produce descriptive statistics  create a tabular report  produce plots and charts. SAS Techies  2009 11/13/09
Data numbers; X1=1;  x2=2; Run; Proc print data=numbers; Run; Start of a Datastep Assigning values to x1 x2 End the datastep Issue a Print Procedure to print the dataset numbers End the Run statement SAS Techies  2009 11/13/09
C, C++, Java like syntax Every Statement ends with ; Datastep starts with the keyword data followed by the dataset name. Datastep ends when run; is found or any other Data or Proc is found else the Status on the window would show “Datastep or Proc Running” It usually begins with a SAS  keyword   they can begin and end anywhere on a line  one statement can continue over several lines  several statements can be on a line.  SAS Techies  2009 11/13/09
Log would show the entire program with the Run time i.e. Real time and the CPU Time. Any errors or any output with PUT or Macro statements SAS Techies  2009 11/13/09
Output Window would show the output of the Procedure in a Listing or HTML Format, date, time and SAS System message. Results Window would show any results produced Explorer window would show any dataset prepared in that step. SAS Techies  2009 11/13/09
To define a library, you assign it a  library name  and specify a  path   Libname libref “C:\temp”; Open the library in Explorer would show all  Datasets  Catalogs  macro compilation  views When you delete a library you delete the reference to SAS engine and Not the Contents at that path. To delete the contents select all of them and delete. Note:  libref  is 1 to 8 characters long only and remain in effect until you modify them, cancel them, or end your SAS session  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
Datalines / cards statement -- Indicates that data lines follow SAS Techies  2009 11/13/09
Set Statement --Reads an observation from one or more already existing SAS data sets -- used to copy / subset of observations to perform additional operations. Data work.ins; set clinic.insure(where=(weight>150)); if weight > 150 then Overweight=‘Yes’;  run; SAS Techies  2009 11/13/09
a SAS data set is a file consisting of two parts: a  descriptor portion  and a  data portion     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
Variable names must ---- be 1 to 32 characters in length  begin with a letter (A-Z, including mixed case characters) or an underscore (_)  continue with any combination of numbers, letters, or underscores.  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 Variable Type and Missing Values   A variable's type determines how SAS software displays missing values for a variable.  For character variables such as  Name  (shown below), a  blank  represents a missing value. For numeric variables such as  Age  (shown below), a  period  represents a missing value.  Missing          values     Name    Sex     Age     Weight        M     48     128.6    Laverne      M     58     158.3    Jaffe     F     .     115.5    Wilson     M     28     170.1
Informats  Informats determine how data values are read into a SAS data set. You  must  use informats to read numeric values that contain letters or other special characters. 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
Formats  write values out using some particular form. User defined formats proc format lib=library;  value JobFmt  * if format is char then  $ Jobfmt ; 103='manager'  105='text processor‘;  run;  Applied like -- format var Jobfmt .  Var2  dollar11.2 ; These are utilized to look up as if it were a table. SAS Techies  2009 11/13/09
Contents Procedure  PROC CONTENTS DATA= libref._ALL_ NODETAILS; RUN; SAS Techies  2009 11/13/09
To modify system options, you submit an OPTIONS statement.  OPTIONS statement is  global , the settings remain in effect until you modify them or end your SAS session.  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
Assignment statements X1=1; X2=2; X3=X2-X1; Note: In the second case if either X2 or X1 is missing then the value of X3 is missing. You can create a variable (not macro variables) in a Datastep only. Ex: data new; x=‘abc’; run;  SAS Techies  2009 11/13/09
To create a variable that accumulates values down observations, a  sum statement  in a DATA step is used. Note -- missing values are ignored. Equivalent to function Sum(x1,x2,….) Ex:  If dsn some has y values  Data new;    Y - 10,20,30 then set some; X+y;   X - 10,30,60 run; SAS Techies  2009 11/13/09
To assign a length to a variable Ex: Length var1 $ 10 var2 10; Where used: data finance.newloan;  set finance.records(drop=amount rate); TotalLoan+payment;  if code='1' then Type='Fixed';   else Type='Variable';  run;  Output will have Type=‘Varia’ SAS Techies  2009 11/13/09
Error Types Syntax Errors -  occur when program statements do not conform to the rules of the SAS language Data Errors -  occur when some data values are not appropriate for the SAS statements that are specified in a program 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

More Related Content

What's hot (20)

DOCX
Base sas interview questions
Dr P Deepak
 
PDF
SAS cheat sheet
Ali Ajouz
 
PPT
Base SAS Statistics Procedures
guest2160992
 
PDF
Base SAS Full Sample Paper
Jimmy Rana
 
PDF
Introduction To Sas
halasti
 
PDF
Sas cheat
imaduddin91
 
PPT
SDTM - Adverse Events Vs. Clinical Events
Vijayaraghava Karpurapu
 
PPTX
Introduction to clinical sas
Vijayaraghava Karpurapu
 
PPTX
Post-lock Data Flow: From CRF to FDA
Brook White, PMP
 
PDF
Base SAS Exam Questions
guestc45097
 
PPTX
Introduction to SDTM
Devender Palsa
 
PPTX
Sas demo
rvmfinishingschool
 
PPT
CDISC SDTM Domain Presentation
Ankur Sharma
 
PPT
Data Match Merging in SAS
guest2160992
 
PPT
SAS Macros part 1
venkatam
 
PPTX
Introduction to clinical sas programming
ray4hz
 
PDF
Proc report
eagebhart
 
PPT
Conditional statements in sas
venkatam
 
PPTX
SDTM (Study Data Tabulation Model)
SWAROOP KUMAR K
 
PPTX
Metadata and ADaM
Kevin Lee
 
Base sas interview questions
Dr P Deepak
 
SAS cheat sheet
Ali Ajouz
 
Base SAS Statistics Procedures
guest2160992
 
Base SAS Full Sample Paper
Jimmy Rana
 
Introduction To Sas
halasti
 
Sas cheat
imaduddin91
 
SDTM - Adverse Events Vs. Clinical Events
Vijayaraghava Karpurapu
 
Introduction to clinical sas
Vijayaraghava Karpurapu
 
Post-lock Data Flow: From CRF to FDA
Brook White, PMP
 
Base SAS Exam Questions
guestc45097
 
Introduction to SDTM
Devender Palsa
 
CDISC SDTM Domain Presentation
Ankur Sharma
 
Data Match Merging in SAS
guest2160992
 
SAS Macros part 1
venkatam
 
Introduction to clinical sas programming
ray4hz
 
Proc report
eagebhart
 
Conditional statements in sas
venkatam
 
SDTM (Study Data Tabulation Model)
SWAROOP KUMAR K
 
Metadata and ADaM
Kevin Lee
 

Similar to Basics Of SAS Programming Language (20)

PPT
BASE SAS Training presentation of coding
shamarites
 
PDF
SAS Internal Training
Amrih Muktiaji
 
DOC
Introduction to SAS
Imam Jaffer
 
PDF
I need help with Applied Statistics and the SAS Programming Language.pdf
Madansilks
 
PDF
Sas summary guide
Ashish K Sharma
 
PPT
Prog1 chap1 and chap 2
rowensCap
 
PPT
Understanding SAS Data Step Processing
guest2160992
 
PPTX
Introducción al Software Analítico SAS
Jorge Rodríguez M.
 
PPT
SAS Online Training by Real Time Working Professionals in USA,UK,India,Middle...
Oracle Apps R12, Financials,SCM,PA,HRMSCorporate Training
 
PPT
SAS - overview of SAS
Vibrant Technologies & Computers
 
PPT
Sas-training-in-mumbai
Unmesh Baile
 
PPTX
sas.pptxnbhjghjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
AfiyaSheikh2
 
DOCX
Sample Questions The following sample questions are not in.docx
todd331
 
PPT
Sas short course_presentation_11-4-09
Prashant Ph
 
PPT
Sas short course_presentation_11-4-09
Prashant Ph
 
PPT
Sas classes in mumbai
Vibrant Technologies & Computers
 
PDF
Introduction to-sas-1211594349119006-8
thotakoti
 
PDF
Set, merge, and update
ramesh Charantimath
 
BASE SAS Training presentation of coding
shamarites
 
SAS Internal Training
Amrih Muktiaji
 
Introduction to SAS
Imam Jaffer
 
I need help with Applied Statistics and the SAS Programming Language.pdf
Madansilks
 
Sas summary guide
Ashish K Sharma
 
Prog1 chap1 and chap 2
rowensCap
 
Understanding SAS Data Step Processing
guest2160992
 
Introducción al Software Analítico SAS
Jorge Rodríguez M.
 
SAS Online Training by Real Time Working Professionals in USA,UK,India,Middle...
Oracle Apps R12, Financials,SCM,PA,HRMSCorporate Training
 
SAS - overview of SAS
Vibrant Technologies & Computers
 
Sas-training-in-mumbai
Unmesh Baile
 
sas.pptxnbhjghjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
AfiyaSheikh2
 
Sample Questions The following sample questions are not in.docx
todd331
 
Sas short course_presentation_11-4-09
Prashant Ph
 
Sas short course_presentation_11-4-09
Prashant Ph
 
Sas classes in mumbai
Vibrant Technologies & Computers
 
Introduction to-sas-1211594349119006-8
thotakoti
 
Set, merge, and update
ramesh Charantimath
 
Ad

More from guest2160992 (8)

PPT
Improving Effeciency with Options in SAS
guest2160992
 
PPT
Reading Fixed And Varying Data
guest2160992
 
PPT
Arrays in SAS
guest2160992
 
PPT
SAS Functions
guest2160992
 
PPT
SAS ODS HTML
guest2160992
 
PPT
Sas Plots Graphs
guest2160992
 
PPT
Utility Procedures in SAS
guest2160992
 
PPT
SAS Access / SAS Connect
guest2160992
 
Improving Effeciency with Options in SAS
guest2160992
 
Reading Fixed And Varying Data
guest2160992
 
Arrays in SAS
guest2160992
 
SAS Functions
guest2160992
 
SAS ODS HTML
guest2160992
 
Sas Plots Graphs
guest2160992
 
Utility Procedures in SAS
guest2160992
 
SAS Access / SAS Connect
guest2160992
 
Ad

Recently uploaded (20)

PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 

Basics Of SAS Programming Language

  • 2. DATA steps typically create or modify SAS data sets, but they can also be used to produce custom-designed reports. For example, you can use DATA steps to put your data into a SAS data set compute the values for new variables check for and correct errors in your data produce new SAS data sets by sub-setting, merging, and updating existing data sets. PROC (procedure) steps typically analyze and process data in the form of a SAS data set, and they sometimes create SAS data sets that contain the results of the procedure. PROC steps control a library of prewritten routines (procedures) that perform tasks on SAS data sets, such as listing, sorting, and summarizing data. For example, you can use PROC steps to print a report produce descriptive statistics create a tabular report produce plots and charts. SAS Techies 2009 11/13/09
  • 3. Data numbers; X1=1; x2=2; Run; Proc print data=numbers; Run; Start of a Datastep Assigning values to x1 x2 End the datastep Issue a Print Procedure to print the dataset numbers End the Run statement SAS Techies 2009 11/13/09
  • 4. C, C++, Java like syntax Every Statement ends with ; Datastep starts with the keyword data followed by the dataset name. Datastep ends when run; is found or any other Data or Proc is found else the Status on the window would show “Datastep or Proc Running” It usually begins with a SAS keyword they can begin and end anywhere on a line one statement can continue over several lines several statements can be on a line. SAS Techies 2009 11/13/09
  • 5. Log would show the entire program with the Run time i.e. Real time and the CPU Time. Any errors or any output with PUT or Macro statements SAS Techies 2009 11/13/09
  • 6. Output Window would show the output of the Procedure in a Listing or HTML Format, date, time and SAS System message. Results Window would show any results produced Explorer window would show any dataset prepared in that step. SAS Techies 2009 11/13/09
  • 7. To define a library, you assign it a library name and specify a path Libname libref “C:\temp”; Open the library in Explorer would show all Datasets Catalogs macro compilation views When you delete a library you delete the reference to SAS engine and Not the Contents at that path. To delete the contents select all of them and delete. Note: libref is 1 to 8 characters long only and remain in effect until you modify them, cancel them, or end your SAS session SAS Techies 2009 11/13/09
  • 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. Datalines / cards statement -- Indicates that data lines follow SAS Techies 2009 11/13/09
  • 10. Set Statement --Reads an observation from one or more already existing SAS data sets -- used to copy / subset of observations to perform additional operations. Data work.ins; set clinic.insure(where=(weight>150)); if weight > 150 then Overweight=‘Yes’; run; SAS Techies 2009 11/13/09
  • 11. a SAS data set is a file consisting of two parts: a descriptor portion and a data portion 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
  • 12. Variable names must ---- be 1 to 32 characters in length begin with a letter (A-Z, including mixed case characters) or an underscore (_) continue with any combination of numbers, letters, or underscores. 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
  • 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. SAS Techies 2009 11/13/09 Variable Type and Missing Values A variable's type determines how SAS software displays missing values for a variable. For character variables such as Name (shown below), a blank represents a missing value. For numeric variables such as Age (shown below), a period represents a missing value. Missing         values     Name   Sex    Age    Weight       M    48    128.6   Laverne     M    58    158.3   Jaffe    F   .    115.5   Wilson    M    28    170.1
  • 15. Informats Informats determine how data values are read into a SAS data set. You must use informats to read numeric values that contain letters or other special characters. 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
  • 16. Formats write values out using some particular form. User defined formats proc format lib=library; value JobFmt * if format is char then $ Jobfmt ; 103='manager' 105='text processor‘; run; Applied like -- format var Jobfmt . Var2 dollar11.2 ; These are utilized to look up as if it were a table. SAS Techies 2009 11/13/09
  • 17. Contents Procedure PROC CONTENTS DATA= libref._ALL_ NODETAILS; RUN; SAS Techies 2009 11/13/09
  • 18. To modify system options, you submit an OPTIONS statement. OPTIONS statement is global , the settings remain in effect until you modify them or end your SAS session. 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
  • 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. Assignment statements X1=1; X2=2; X3=X2-X1; Note: In the second case if either X2 or X1 is missing then the value of X3 is missing. You can create a variable (not macro variables) in a Datastep only. Ex: data new; x=‘abc’; run; SAS Techies 2009 11/13/09
  • 21. To create a variable that accumulates values down observations, a sum statement in a DATA step is used. Note -- missing values are ignored. Equivalent to function Sum(x1,x2,….) Ex: If dsn some has y values Data new; Y - 10,20,30 then set some; X+y; X - 10,30,60 run; SAS Techies 2009 11/13/09
  • 22. To assign a length to a variable Ex: Length var1 $ 10 var2 10; Where used: data finance.newloan; set finance.records(drop=amount rate); TotalLoan+payment; if code='1' then Type='Fixed'; else Type='Variable'; run; Output will have Type=‘Varia’ SAS Techies 2009 11/13/09
  • 23. Error Types Syntax Errors - occur when program statements do not conform to the rules of the SAS language Data Errors - occur when some data values are not appropriate for the SAS statements that are specified in a program SAS Techies 2009 11/13/09
  • 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

  • #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
  • #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
  • #19: SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  • #20: SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  • #21: SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  • #22: SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  • #23: SASTechies.com Sharad C Narnindi - Attic Technologies 2005
  • #26: SASTechies.com Sharad C Narnindi - Attic Technologies 2005