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
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
Explain the difference between informat and format with an example.
How is character variable converted into numeric variable and vice versa?
Can you execute a macro within a macro? Describe. : sas-macro
What is the use of the %include statement?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
What are the implications?
Describe the ways in which you can create macro variables?
Define run-group processing?
What can be the size of largest dataset in SAS?
What are the limitations for memory allocation for SAS variables
In SAS explain which statement does not perform automatic conversions in comparisons?
What is the maximum and minimum length of macro variable
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.