Question-6: What is a Data value?

Answer: Each separate information for a variable and an entity is known as data value.

 

 

 

 

 

Question-7: Can you please explain, what is an entity and a data value?

Answer: As you can see in the below SAS Dataset, it has detail about the 5 different persons.

FirName

LastName

Gender

Height

Weight

Amit

Jain

Male

162

58

Rakesh

Gupta

Male

159

57

Nutan

Jain

Female

148

51

John

Fernandes

Male

178

78

Venkat

Upala

Male

167

71

 

Here, each person is known as an entity. Hence, this dataset represents the 5 entities. Where each entity has some characteristics, which varies from entity to entity (person to person) for example their name, height etc. Hence, the characteristics or the features that varies needs to be represented by a variable. And each individual entity has some value for each variable like Amit has weight 58 kg. Hence, here 58 and Amit all are the Data values. So, an observation contains the Data value for one entity. In the given Dataset we can say

  • Total 5 Entity or 5 observations
  • Total 5 variables or features
  • Total 25 Data values.

Question-8: How do you create a new Data set in the SAS?

Answer: In the SAS we use the DATA step to create a new SAS Data set.

Question-9: Please show me an example, how do you create a SAS Data set?

Answer: To create a SAS Dataset we need to write a program. Let’s see from the below pseudo code.

data he_learner;

                input ID 1-4 Name $ 6-12 CourseName $ 13-18 Fee $;

                datalines;

                1001       Amit      Hadoop 8000

                1002       Rakesh SAS        7000

;

run;

The entire program above represents a SAS Data step. Which is creating the new Data set named “he_learner” using the data provided below datalines.

Question-10: Please tell me what all common elements you know about the Base SAS programming?

Answer: Common programming elements in the SAS Base are statements, expressions, functions, call routines, options, formats, and informats.