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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
Error Handling Identify and resolve programming logic error Recognize and correct syntax errors Examine and resolve data errors
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.
Image of page 3

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

View Full Document Right 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
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;
Image of page 5

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

View Full Document Right 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.
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern