In which format does Date stores in sas..?
What is the use of DATE in SAS.?

Answers were Sorted based on User's Feedback



In which format does Date stores in sas..? What is the use of DATE in SAS.?..

Answer / satyanand

SAS represents a date internally as the number of days
between January 1, 1960 and the specified date. Dates
before 1960 are represented with negative numbers. A
SAS date value is a numeric variable

Is This Answer Correct ?    22 Yes 1 No

In which format does Date stores in sas..? What is the use of DATE in SAS.?..

Answer / jyothi swaroop

In SAS the date has been stored as machine level language,
and the reference date for SAS is Jan 1, 1960.
To find out the exp of employees we have to use DOJ, then we
will use date.

Is This Answer Correct ?    1 Yes 0 No

In which format does Date stores in sas..? What is the use of DATE in SAS.?..

Answer / mannna

it is stored as numeric values.
Eg
data aaa;
a=today();
put a;
run;
it will show you numeric no equivalent to current date.After using format staement u can get todays date as;
data aaa;
a=today();
format a date9.;
put a;
run;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

what is intially documentation for a sas programmer?

2 Answers   Accenture,


How did you use the round function?give an example(don't say it will round to the nearest intger) eg1:round(84.55,.1) =84.6 eg2:round(92.64,.1)=92.6,How it is happening like this tell me the logic,that is how the round function works when we have deimal values?

2 Answers   BoA,


What is the use of %include statement?

0 Answers  


What does the trace option do?

0 Answers  


How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

0 Answers  






What is the difference between input and infile statement?

0 Answers  


How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?

7 Answers   GSK, TNS,


How do you define proc in sas? : sas-grid-administration

0 Answers  


Name statements that function at both compile and execution time.

7 Answers   Accenture,


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

0 Answers  


what are the best practices to process the large data sets in sas programming? : Sas-administrator

0 Answers  


how do you debug and test your sas programs? : Sas programming

0 Answers  


Categories