Lesson 2: Learning SAS Characteristics

sas

In this article, we are going to learn about the characteristics of SAS.

sassteps2

There are several steps of the SAS program that make up the characteristics of a data step. These include two kinds of steps:

  1. Data Step
  • you can create new variables that was not in your raw data
  • converts raw data into a data set

     2. PROC Step

  • stands for procedure step
  • typically processes SAS data
  • generates reports, graphs, manage data, and sort data
  • begins with a PROC statement

 

What makes up a SAS step?

  • SAS programs consists in a sequence of steps
  • a step is comprised as a sequence of steps
  • every step has a begnning and ending boundry, called step boundries
  • ends at a RUN; statement or a QUIT; statement

sasstatements

 

stepboundries

sasformatting

Use Conventional Formatting

Always use conventional formatting to have easy to follow programs for other users or developers to see.  Using this format allows you to make changes and for easy readablility.  Even though SAS allows free formatting for no spaces in between steps or a small font or capital letters, it’s a good practice to use a consistent conventional technique.  Also, use proper indentions and spaces between steps for proper readablity.  See example below:

sascharacter

Stay tuned for the next lesson Lesson 3: Learning More About Data Sets in SAS.

If you found this article helpful or want to learn more about SAS, leave a comment below and I’ll be sure to return a quick response.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s