Premium

SAS Base Latest Interview Preparation (Q&A)



Question-: What is the pointer control, while reading the RAW data?

Answer: When SAS reads the data, you can specify using the pointer control from which column it should start reading for the next item.



Question-: What is the use “YEARCUTOFF� option in the SAS?

Answer: When SAS reads the date values and if data has two-digit year like 19, then SAS should consider it as 1919 or 2019. It can be decided using the “YEARCUTOFF� option value. Lets say you define below system option
OPTION YEARCUTOFF=1950
In this case two-digit dates would be considered between 1950 to 2049. It means if two-digit year 19 would be considered 2019, and 71 would be consider as 1971. However, it is recommended in your RAW data if possible then have 4-digit year and avoid the confusion.



Question-: What all are the attributes for the SAS variables?

Answer: SAS variables can have following attributes
- Name of the variable
- Type of the variable
- What is the length of the variable
- Informat & format of the variable
- Label for the variable
- What is the position in an observation
- Index type



Question-: What is the default type is considered, if you don’t define the type for a variable?

Answer: If you don’t define the type of the variable then it would be considered as integer and can hold upto 8 bytes. In the below statement all the 4 variables are considered as Numeric, because you are not providing any explicit type information.
input Id Name fee location;

Related Questions


Question-: What is the difference between FILENAME and INFILE?

Question-: Can you explain all the below 4 INFILE options? FLOWOVER, MISSOVER, STOPOVER, TRUNCOVER

Question-: What is the use of “@@� at the end of input statement?

Question-: What all are the by default statistics can be produced by the MEANS proc in SAS?

Question-: What is the use of _NULL_ in SAS?

Question-: What do you mean by SAS expression?

Question-: What is the difference between NODUPKEY and NODUP?

Question-: What is an alternate way to remove duplicate data?