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 difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

537


What are pdv and it functions?

592


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

4902


What is maximum number of rows and cols can be handled in SAS?

844


What are the difference between the sas data step and sas procs?

597






Explain append procedure?

626


What are the special input delimiters used in SAS?

648


how do you test for missing values? : Sas programming

574


Name some categories in sas 9? : sas-grid-administration

551


how do the in= variables improve the capability of a merge? : Sas programming

925


What is a method to debug and test your SAS program?

706


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

569


Are you involved in writing the inferential analysis plan? Tables specfications?

2103


What is run-group processing?

614


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1456