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

Answer Posted / shaik

data m;
input n date monyy7.;
format date monyy7.;
cards;
12 mar99
45 mar1999
45 sep98
run;

we will get output;

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does sas handle missing values in a merge? : Sas programming

558


What do the PUT and INPUT functions do?

783


What are common programming errors committed in sas

674


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1232


What is the function of Stop statement in a SAS Program?

647






if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1169


What is the difference between reading data from an external file and reading data from an existing data set?

639


What is proc sort?

724


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

1689


What is the basic syntax of a sas program?

671


What are the implications?

1181


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

1975


How do you add a number to a macro variable? : sas-macro

545


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2270


How you can read the variables that you need?

655