Sir, this is a great chart. However, when I try to run the code on SAS 9.4m2, it throws an…