In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)

Answer Posted / chiranjeevi

data code;
input name$ dob monyy7.;
cards;
a mar99
b mar1999
run;
proc print data=code;
format dob monyy7.;
run;

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the function of substr in sas? : Sas-administrator

776


How do you connect the desktop application to metadata server? : sas-grid-administration

852


what is sas and what are the functions? : Sas-administrator

747


Explain proc sort?

871


Mention what is PROC in SAS?

818


What is SAS?

807


If a variable contains letters or special characters, can it be numeric data type?

982


How to convert a numeric variable to a character variable?

869


What are the different versions of sas that you have used until now? : sas-grid-administration

1038


what is sas metadata server? : Sas-di

829


what is proc Index? and what is proc document?

2236


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3348


how would you create multiple observations from a single observation? : Sas programming

772


How do dates work in SAS data?

908


What are all the problems you faced while validating tables and reports?

3231