I tested both codes, Ksharp, I think your code has some issue, it didn't read in correctly. for records: DE000A1GNAH1, 10/08/2022, data has 2 XS0271265299, 04/08/2023, data has 3, 904510KN3, 12/15/2030, data has 30 all 2, 3, 30 should not be there. Here is your code, I change it little bit to make it read in txt file data Ksharp_x(drop=x ); infile mydata truncover; length x $ 12; input id : $20. @; do until(missing(x)); input date : mmddyy12. @ ; input x : $char12. +(-1*(length(x)+1)) @; if not missing(x) or not missing(date) then do; if index(x,'/') then do; price=.; output; end; else do; input price @; output; end; end; end; format date mmddyy10.; run; SR71Blackbird, read all data correctly. Ksharp, can you help fix it?
... View more