Happy New Year, I would like to perform the following using sas code, not proc sql. I know using the max function for two variables and a group by statement would work but I'm looking for another solution. Thank You in advance: data have; infile cards dsd; informat date mmddyy10.; format date date9.; input acct $ date default $; cards; 00001,01/01/2000,pd npl 00001,01/01/2000,pd 00001,01/01/2001,pd 00002,02/01/2000,pd npl 00002,02/01/2000,pd 00002,02/01/2010,pd ; run; data want; infile cards dsd; informat date mmddyy10.; format date date9.; input acct $ date default $; cards; 00001,01/01/2001,pd npl 00002,02/01/2010,pd npl ; run;
... View more