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


Please Help Members By Posting Answers For Below Questions

what do you mean by data staging area? : Sas-di

586


What is a macro routine?

2084


what is hash files in sas and why we are using this one in sas?

1707


What is the difference between one to one merge and match merge? Give an example.

554


Difference between nodup and nodupkey options?

620






what is the difference between unique key and primary key? : Sas-di

575


how sas deals with business intelligence? : Sas-bi

569


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

735


what are validation tools that are used in sas? : Sas-administrator

579


Describe the function and utility of the most difficult SAS macro that you have written?

2006


what is null hypothesis? why do you consider that?

2405


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?

687


Which are the statements whose placement in the data step is critical?

744


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

665


What is program data vector (pdv)?

621