I am trying to extract all the Time occurrences for only the recent visit. Can someone help me with the code please.

Here is my data:

```
Obs   Name      Date       Time  

 1    Bob       2017090    1305  
 2    Bob       2017090    1015  
 3    Bob       2017081    0810  
 4    Bob       2017072    0602  
 5    Tom       2017090    1300  
 6    Tom       2017090    1010  
 7    Tom       2017090    0805  
 8    Tom       2017072    0607  
 9    Joe       2017085    1309  
10    Joe       2017081    0815  

```

I need the output as:

```
Obs  Name      Date       Time  

1    Bob       2017090    1305,1015    
2    Tom       2017090    1300,1010,0805
3    Joe       2017085    1309   

```

Right now my code is designed to give me only one recent entry:

```
DATA OUT2;                           
SET INP1;                          
BY DATE;                             
IF FIRST.DATE THEN OUTPUT OUT2;   
RETURN;                                

```