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

Answer Posted / poornima

To read the data with mar99 and mar1999, we use eurdfmyw.
informat.
This informat is used to read the data with only month and
year.
eg:
data m;
input n date eurdfmy7.;
format date eurdfmy7.;
cards;
12 mar99
45 mar1999
45 sep98
run;
proc print data=m;
run;

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does sas handle missing values in sort order? : Sas programming

501


What are the special input delimiters used in SAS?

634


where to use sas business intelligence? : Sas-bi

559


name the scheduler for scheduling job and explain the scheduler? : Sas-di

565


Why and when do you use proc sql?

729






Name types of category in which SAS Informats are placed?

694


How would you determine the number of missing or nonmissing values in computations?

627


This entry was posted in General. Bookmark the permalink. Post a comment or leave

3950


What areas of SAS are you most interested in?

1037


What do you code to create a macro? : sas-macro

552


Approximately what date is represented by the SAS date value of 730?

707


name some data transformation used in sas di? : Sas-di

526


What is by-group processing?

559


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

4879


do you need to know if there are any missing values? : Sas programming

524