In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)
Answer Posted / poornima
To read the data with mar99 and mar1999, we use eurdfmyw.
informat.
This informat is used to read the data with only month and
year.
eg:
data m;
input n date eurdfmy7.;
format date eurdfmy7.;
cards;
12 mar99
45 mar1999
45 sep98
run;
proc print data=m;
run;
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is maximum storage capability of SAS?
what is hash files in sas and why we are using this one in sas?
what are _numeric_ and _character_ and what do they do? : Sas programming
Describe the ways in which you can create macro variables?
how are numeric and character missing values represented internally? : Sas programming
what do the pad and dim functions do? : Sas programming
How do you test for missing values?
how many types of prompts are there? : Sas-bi
Difference between SAS STATA & SPSS?
Explain proc univariate?
Give an example where SAS fails to convert character value to numeric value automatically?
What is the role of sas grid administrator? : sas-grid-administration
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
Explain what is SAS informats?
do you prefer proc report or proc tabulate? Why? : Sas programming