SAS_Error handling - Error Handling Last Updated 29 June...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Error Handling Last Updated : 29 June, 2004 Center of Excellence Data Warehousing
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error Handling Identify and resolve programming logic error Recognize and correct syntax errors Examine and resolve data errors
Background image of page 2
Error Handling SAS performs error processing during both the compilation and the execution phases of SAS processing. Debug SAS programs by understanding processing messages in the SAS log and then fixing your code. Use the DATA Step Debugger to detect logic errors in a DATA step during execution.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error Handling Error occurs when . .. detected at . .. syntax programming statements do not conform to the rules of the SAS language compile time semantic the language element is correct, but the element may not be valid for a particular usage compile time execution -time SAS attempts to execute a program and execution fails execution time data data values are invalid execution time
Background image of page 4
Error Handling Syntax errors occur when program statements do not conform to the rules of the SAS language. Examples of syntax errors include misspelling a SAS keyword using unmatched quotation marks forgetting a semicolon specifying an invalid statement option specifying an invalid data set option. Example:The DATA statement is misspelled, and SAS prints a warning message to the log. Because SAS could interpret the misspelled word, the program runs and produces output. date temp; x=1; run;
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error Handling SAS Log: Syntax Error (misspelled key word) date temp; 14WARNING 14-169: Assuming the symbol DATA was misspelled as date. x=1; 3 run; NOTE: The data set WORK.TEMP has 1 observations and 1 variables.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/08/2010 for the course USE 3425 taught by Professor Raman during the Spring '10 term at Punjab Engineering College.

Page1 / 20

SAS_Error handling - Error Handling Last Updated 29 June...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online