data table1; format Effective_date date9.; infile cards dlm= "," dsd; input id rate Effective_date ddmmyy10.; cards ; 123,5.62,18/05/2009 123,4.88,01/06/2009 123,4.25,01/09/2009 123,4.12,01/12/2009 123,4.25,01/03/2010 123,4.37,01/03/2011 123,4.5 ,01/09/2011 123,4.62,01/12/2011 123,4.5 ,01/06/2012 123,4.25,03/09/2012 123,4.12,03/12/2012 ;run; data table2; format Formmated_Date ddmmyy10. id 3. Close_dt ddmmyy10. Open_dt ddmmyy10.; infile cards dlm= "," dsd ; input Formmated_Date ddmmyy10. ID 3. Close_dt ddmmyy10. Open_dt ddmmyy10.; cards ; 18/05/2009,123,30/01/2015,18/05/2009 19/05/2009,123,30/01/2015,18/05/2009 20/05/2009,123,30/01/2015,18/05/2009 21/05/2009,123,30/01/2015,18/05/2009 22/05/2009,123,30/01/2015,18/05/2009 23/05/2009,123,30/01/2015,18/05/2009 24/05/2009,123,30/01/2015,18/05/2009 25/05/2009,123,30/01/2015,18/05/2009 26/05/2009,123,30/01/2015,18/05/2009 27/05/2009,123,30/01/2015,18/05/2009 28/05/2009,123,30/01/2015,18/05/2009 29/05/2009,123,30/01/2015,18/05/2009 30/05/2009,123,30/01/2015,18/05/2009 31/05/2009,123,30/01/2015,18/05/2009 01/06/2009,123,30/01/2015,18/05/2009 02/06/2009,123,30/01/2015,18/05/2009 03/06/2009,123,30/01/2015,18/05/2009 04/06/2009,123,30/01/2015,18/05/2009 05/06/2009,123,30/01/2015,18/05/2009 06/06/2009,123,30/01/2015,18/05/2009 07/06/2009,123,30/01/2015,18/05/2009 08/06/2009,123,30/01/2015,18/05/2009 09/06/2009,123,30/01/2015,18/05/2009 10/06/2009,123,30/01/2015,18/05/2009 11/06/2009,123,30/01/2015,18/05/2009 12/06/2009,123,30/01/2015,18/05/2009 13/06/2009,123,30/01/2015,18/05/2009 14/06/2009,123,30/01/2015,18/05/2009 15/06/2009,123,30/01/2015,18/05/2009 16/06/2009,123,30/01/2015,18/05/2009 17/06/2009,123,30/01/2015,18/05/2009 18/06/2009,123,30/01/2015,18/05/2009 19/06/2009,123,30/01/2015,18/05/2009 20/06/2009,123,30/01/2015,18/05/2009 21/06/2009,123,30/01/2015,18/05/2009 22/06/2009,123,30/01/2015,18/05/2009 ;run;
... View more