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 Linear Regression?
What is the basic structure of a sas program?
Explain substr function?
why is sas considered self-documenting? : Sas programming
Differentiate between ceil and floor functions.
How does proc sql work?
Explain append procedure?
What are the data types that sas contain?
what are informats in sas? : Sas-administrator
Mention what are the data types does SAS contain?
What is program data vector (pdv) and what are its functions?
What are the special input delimiters used in SAS?
What is the basic syntax style in SAS?
what is sas metadata server? : Sas-di
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming