Question : You have set YEARCUTOFF= (which is default as well). Now you have date as //. How this date will be read by SAS, when you have specified the format as MMDDYY8.?
Correct Answer : Get Lastest Questions and Answer : Explanation: Yes, here date is given in 4 digit. But the problem is with the informat, you are saying date has width of 8 only, which is not correct actually it is 10 character long. So last two digit will be truncated and year part remain will be 20 only. Now we have yearcutoff=2026, it means this 20 will be read as 2020. So correct date representation will be 13-Aug-2020, which is not correct values of given date.
Question : You have been given below SAS data in raw file
Where second and third field of the date will give you startDate and endDate of training course, which of the following will give you the correct value for course duration?
Correct Answer : Get Lastest Questions and Answer : Explanation: As you know, SAS first convert dates into number of days starting from January 1, 1960. Which makes calculations in SAS faster. However, when you do the subtractions dates are inclusive. Hence, you need to +1 whenever you subtract dates to find the number of days interval.
1. A file named test.cvs that can only be opened in Excel. 2. A text file named test.cvs that can be opened in Excel or in any text editor. 3. Access Mostly Uused Products by 50000+ Subscribers 4. A file named test.cvs that can only be opened by SAS.
1. A compiler error, triggered by an invalid character for the variable Salary. 2. An execution error, triggered by an invalid character for the variable Salary. 3. Access Mostly Uused Products by 50000+ Subscribers 4. An error on the INPUT statement specification for reading the variable Salary.