Hi Sanjay, Really great sas program and easy to modify for other input data. Since two years I was looking…