In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)
Answer Posted / sankar
data ss;
input name$ s anydtdte9.;
cards;
sankar mar99
mahesh mar1999
run;
proc print data=ss;
format s date9.;
run;
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What is Linear Regression?
What are the ways in which macro variables can be created in sas programming?
What is the use of %include statement?
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
Describe the ways in which you can create macro variables? : sas-macro
What is the difference between INPUT and INFILE ?
What can you learn from the SAS log when debugging?
Differentiate input and infile.
What are the limitations for memory allocation for SAS variables
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
how sas deals with business intelligence? : Sas-bi
What is the difference between nodupkey and nodup options?
what is the Population you used in your project, is it ITT or PP?
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
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?