Hi ChrisNZ, Thank you for the help. May I just request another thing. Sorry I am really a newbie here. The code is working, it's just that I am having trouble for some months with duplicates and are under the same name. How can I eliminate those duplicates based on file attachments? *The latest date will be retained. The attachment is concatenated with filename, month, day and time. Something like this: data HAVE;
input NAME $ TRANS_MONTH $ FILE_ATTACH $;
cards;
A 01 QQQFEB2207:54
A 01 QQQFEB2002:54
A 04 DDDMAR0112:01
B 01 DDDJAN1807:00
B 05 YYYSEP0111:10
B 05 GGGOCT1108:21
; The output should be something like this: Obs NAME MTH01 MTH02 MTH03 MTH04 MTH05 MTH06 MTH07 MTH08 MTH09 MTH10 MTH11 MTH12 1 A QQQFEB2207:54 X X DDDMAR0112:01 X X X X X X X X 2 B DDDJAN1807:00 X X X GGG1108:21 X X X X X X X Thank you so much and have a great day ahead. maricelj
... View more