Hi Vijay, As per the proc content screenshot, we believe the date is in character format. In order to perform the calculation on the date, we need to convert the date to numeric, so we need to read the date in numeric format, you can use the informat anydtdte. to read the date converting it to sas date value on which you can perform the calculation. The interesting thing about this informat anydtdte. is that it can read any type of date whether mmddyy or ddmmyy or any other. you can use it in the following way similar to snoopy369, just change the format select(input(tab1.mndate,anydtdte.) - input(tab2.mndate,anydtdte.)) ... Hope this works. Thanks, Jagadish
... View more