Basic Concepts of SAS (Statistical Analysis System)

What is SAS ?

SAS (Statistical Analysis System) is a collection of modules that are used to process and analyze data. SAS is a powerful and easy-to-use high level programming system. SAS is a set of solutions for enterprise- wide business users for performing:

1>   Applications Development
2>   Business planning
3>   Data entry
4>   Decision support
5>   Forecasting
6>   Graphics
7>   Operations research
8>   Project Management
9>   Retrieval and Management
10> Report writing
11> Statistical and Mathematical Analysis
12> Quality Improvement

It provides extensive data management tools and file handling tools. It helps in converting raw data into a meaningful information that is used in decision making.

SAS runs on many platforms ( Unix , MVS , Windows , VAX etc ). However for any SAS product to run , the Base SAS software must be installed in the system.


SAS Processing:-

A SAS program may contain a DATA step, a PROC STEP or any combination of DATA and PROC step.
DATA steps – create SAS data sets.
PROC steps – process SAS datasets like sorting, generating reports & graphs

The DATA step is an implied loop. This means that if a file is read in the data step, an automatic loop is executed till end of the file is reached. An automatic system generated variable _N_ is incremented each time the loop starts.

What are the rules of SAS Statements ?

1> Begin with an DATA or PROC (identifying keyword) and always ends with SEMICOLON
2> Statements can be in lower case or upper case.
3> SAS statements are free- format means they can begin or end in any column.
4> SAS detects the beginning of a step when it encounters a DATA or PROC statement.
5> SAS detects the end of a statement when it encounters a DATA or a PROC or a RUN or statement.
6> Length of variables should be 1 to 8 characters.
7> Variables should start with a letter or _(underscore).
8> Comments are like /* */
or * ; (for single line comments).

What is a SAS dataset?

SAS dataset is a SAS file consisting of two parts: Data portion and a Descriptor portion.
Data Portion:          It is a collection of data values
Descriptor Portion: The descriptor portion of a dataset contains information about the dataset like: Name of dataset, date and time the dataset was created, number of Observations,number of variables.

When we submit a DATA step, SAS software processes the DATA step and creates a new SAS data set.
Let's see exactly how that happens.SAS Data step is processed in two distinct phases:
During the compilation phase, each statement is scanned for syntax errors. Most syntax errors prevent further processing of the DATA step.
If the DATA step compiles successfully, then the execution phase begins. A DATA step executes once for each observation in the input data set, unless otherwise directed


What happens when a SAS program is submitted?

1> SAS software reads the statements and checks them for errors
2> When it encounters a DATA, PROC, or RUN statement, SAS software stops reading statements and executes the current step in the program.
3> Each time a step is executed, SAS software generates a log of the processing activities and the results of the processing.
The SAS log collects messages about the processing of SAS programs and any errors that may occur.
4> Separate sets of messages for each step in the program are produced.

5 comments:

  1. Hi, thank you for sharing this pretty useful blog, from the IT industry survey, Big Data/Analytics is the hot trend with the strong demand of talent in the upcoming years; I think you are making a great choice to pursue a Master degree in this area.
    Regards,
    SAS Training in Chennai|SAS Course in Chennai

    ReplyDelete
  2. This post is much helpful for us. This is really very massive value to all the readers and it will be the only reason for the post to get popular with great authority.
    SAS Training in Chennai

    ReplyDelete
  3. Everyone wants to get unique place in the IT industry’s for that you need to upgrade your skills, your blog helps me improvise my skill set to get good career, keep sharing your thoughts with us.
    SAS Online Training |
    Tableau Online Training|
    R Programming Online Training|

    ReplyDelete
  4. Thanks for appreciating. Really means and inspires a lot to hear from you guys.I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..Believe me, This is very helpful for me.

    Base SAS Training in Chennai

    MSBI Training in Chennai

    ReplyDelete
  5. Nice blog..! I really loved reading through this article... Thanks for sharing such an amazing post with us and keep blogging...
    SAS Training in Noida

    ReplyDelete