![]() |
|
|
|||||||
| FlashChat | Actuarial Discussion | Preliminary Exams | CAS/SOA Exams | Cyberchat | Around the World | Suggestions |
Registration Form |
D.W. Simpson |
Australia Jobs | Pension |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Sas coding help. Let say I have the following table
Name,effdate, trandate John,20120105,20120101 John,20120105,20120104 Mary,20120108,20120109 Mary, 20120108,20120102 And this is the output I want John,20120105,20120101 Mary,20120108, 20120102 So the key to filter is trandate but I do not know how to code it in a data step. Any help is appreciated. ![]() |
|
#3
|
||||
|
||||
|
Alternatively, you can do the following to get the same result:
Code:
proc sql; create table datafile01 as select name,effdate,min(trandate) as trandate from datafile group by name,effdate; quit;
__________________
Res ipsa loquitur, sed quid in infernos dicet?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|