In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)
Answer Posted / shaik
data m;
input n date monyy7.;
format date monyy7.;
cards;
12 mar99
45 mar1999
45 sep98
run;
we will get output;
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Why and when do you use proc sql?
How to limit decimal places for variable using proc means?
what are sas/access and sas/connect? : Sas programming
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
Explain input and put function?
what is the use of proc contents and proc print in sas? : Sas-administrator
How to sort in descending order?
Give e an example of..
Define run-group processing?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
What is the difference between %local and %global? : sas-macro
what has been your most common programming mistake? : Sas programming
what is snowflake schema? : Sas-di
Explain the difference between informat and format with an example.
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation