Question-11: What all are the basic rules for SAS statements?

Answer: Lets see the few rules below

  • SAS statement would always end with the semicolon.
  • SAS statement can be written using lowercase, uppercase or mixture of two.
  • You can write more than one statement in a single line.
  • It is not necessary that your SAS statement can start from the first column of the line.
  • Your SAS statement can be written in more than one line, as soon as it found semicolon then statement ends.

Question-12: What all are the rules for the SAS names?

Answer: SAS could have various names like

  • Name of the variable
  • Name of the Data sets

So, each name in the SAS has to follow some rules which are as below.

  • Name must have length between 1 to 32 character.
  • Name’s first character can be either “_” underscore or any other letter.
  • From2nd character to 32, you can even have the number e.g. “_he_2_data”
  • You can not have blank in the names.

Question-13: Is case sensitivity matters for the variable name and how internally they are represented?

Answer: In case of SAS variable name, you can use mis of uppercase or lower case letter. But internally it does not matter whether you use “CourseName”, “COURSENAME” or “coursename” internally all are the same and would be referred to the same variable.

Question-14: What is the SAS Procedure?

Answer: SAS has built in programs known as SAS procedures. Using the SAS procedure, you can do data analysis for the data stored in the SAS Data sets. And generate reports, which save your lot of effort by not writing entire procedure your own.

Question-15: What is the purpose of PRINT procedure?

Answer: PRINT procedure as name suggests display the Data values for the Dataset variables in simple organized form.