Hello, Please help me to change the no 198704 to a SAS date, where 1987 is Year and 04 is month. Actually I want to calculate the difference (L.O.R) b/w to Date2 and Date1 in months. Please tell me where is I am mistaking. data abc; set ab1; Date1_changed = put(input(put(Date1,6.),yymmn6.),yymmn6.); Date2_changed = put(input(put(Date2,6.),yymmn6.),yymmn6.); LOR = intck('Months',date1, date2); run; Set - ab1 Date1 Date2 198704 201106 200601 201103 198709 200901 201307 201307 201310 201310 199411 200412 199308 200306 200607 201304
... View more