Question : Whenver dates are given in the SAS dateset, SAS will read data from a fixed date , what is that fixed date? 1. January 1, 2000 for dates greater than 01 Jan 2000
2. January 1, 2001 for dates greater than 01 Jan 2001
Correct Answer : Get Lastest Questions and Answer : Explanation: Whnever SAS read the date field with correct format it will store number of days internally from the date January 1, 1960.
Question : Why SAS prefer to use SAS date values as numeric rather that text?
1. It can be easily converted from numeric to text.
2. SAS does not have to any special calculation while storing numeric data
4. Date can be used for various calculations, hence storing them as numeric value will help.
Correct Answer : Get Lastest Questions and Answer : Explanation: Compare to other programming language, SAS stores date values in numeric format. So that values can be easily used for various date calculations like difference between two dates, adding date values etc.
Question : Which of the following statements are correct for SAS date values?
1. SAS automatically make the adjustment for day light savings on date values.
2. SAS automatically make the adjustment for leap years on date values.
4. SAS automatically make the adjustment for Julian dates on date values.
Correct Answer : Get Lastest Questions and Answer : Explanation: SAS does not automatically do the adjustment for the day light savings but for leap years they can do that.
Related Questions
Question : What is the purpose or the MISSOVER option on the INFILE statement? 1. It prevents SAS from loading a new record when the end of the current record is reached. 2. It enables SAS to scan the input data records until the character string that is specified in the @`character-string' expression is round. 3. Access Mostly Uused Products by 50000+ Subscribers input tine for all the variables in the statement. 4. It causes the DATA step to stop processing if an INPUT statement reaches the end of the current record without finding values for all variables in the statement.