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

Answer Posted / sankar

data ss;
input name$ s anydtdte9.;
cards;
sankar mar99
mahesh mar1999
run;
proc print data=ss;
format s date9.;
run;

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2238


Explain what is SAS informats?

606


What is the role of administrative users? : sas-grid-administration

645


What is the difference between nodupkey and nodup options?

586


What are the data types that sas contain?

646






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

740


Name any two sas spawners? : sas-grid-administration

548


Explain the special input delimiters used in sas programming.

571


Differences between where and if statement?

572


what is broad cast agent? : Sas-bi

587


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

535


Describe the ways in which you can create macro variables?

618


What is the command used to find missing values?

580


How does the internal authentication work in sas? : sas-grid-administration

573


What is the difference between order and group variable in proc report?

821