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
how many types of prompts are there? : Sas-bi
What is the use of divide function?
What is the length assigned to the target variable by the scan function?
How do dates work in sas?
what is data integration? : Sas-di
What is the differnce between SDTM 3.1.2 to 3.1.1 version
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
How would you determine the number of missing or nonmissing values in computations?
what is sas and what are the functions? : Sas-administrator
What do you code to create a macro? : sas-macro
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
How do dates work in SAS data?
do you need to know if there are any missing values? : Sas programming
What does the trace option do?
Explain why double trailing @@ is used in input statement?