Jiangtang's profile技止于此BlogListsNetwork Tools Help

Blog


    9/15/2007

    SAS学习笔记(4):Editing and Debugging SAS Programs

    以前的东西:

    SAS OnlineTutor®: Basic and Intermediate SAS®的learning path见《SAS学习笔记:开篇》

    SAS学习笔记(1):Basic Concepts

    SAS学习笔记(2):Using the Programming Workspace

    SAS学习笔记(3):Referencing Files and Setting Options

    --------------------------------------------------

    General form, basic INCLUDE command: INCLUDE 'file-specification'

    where file-specification is the physical name by which the host system recognizes the file.

    Because this is a command (not a SAS statement), no semicolon is used at the end.

    SAS Program Structure

    • begin DATA and PROC steps in column one
    • indent statements within a step
    • begin RUN statements in column one
    • include a RUN statement after every DATA step or PROC step.

    Error Types

    So far, the programs that you've submitted in this lesson have been error-free, but programming errors do occur. SAS can detect several types of errors. The most common are

    • syntax errors that occur when program statements do not conform to the rules of the SAS language
    • data errors that occur when some data values are not appropriate for the SAS statements that are specified in a program.
    Technorati Tags: ,

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://johnthu.spaces.live.com/blog/cns!2053CD511E6D5B1E!300.trak
    Weblogs that reference this entry
    • None