In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)
Answer Posted / svm
For Date Time check here,
http://www.sfu.ca/sasdoc/sashtml/lrcon/zenid-63.htm
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the special input delimiters used in SAS?
Mention how to limit decimal places for the variable using proc means?
Have you ever used the SAS Debugger?
For clinical entire study how many tables will create approx?
explain the proc in sas? : Sas-administrator
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
Differentiate between sas functions and sas procedures.
Which are the statements whose placement in the data step is critical?
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
how does sas handle missing values in a merge? : Sas programming
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What are the data types does SAS contain?
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