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

what is data integration? : Sas-di

602


What are SAS/ACCESS and SAS/CONNECT?

618


Mention few capabilities of sas framework.

680


How would you define the end of a macro? : sas-macro

593


What are the table names in oracle database...?

2238






what are the types of interactive display types? : Sas-bi

641


Explain proc sort?

651


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

1987


what is operational data and operational system? : Sas-di

623


what other sas products have you used and consider yourself proficient in using? : Sas programming

671


How is character variable converted into numeric variable and vice versa?

580


What does the RUN statement do?

843


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

619


what are several options for creating reports in web report studio? : Sas-bi

618


what is broad cast agent? : Sas-bi

587