These statements write all ODS graph templates to a file, read that file, and write out a new file with an MVAR and ENTRYFOOTNOTE
statement added after every BEGINGRAPH statement. Then these new templates are compiled with PROC TEMPLATE. These steps assume
that no BEGINGRAPH statement is longer than 256 characters. Most graphs do not have footnotes. Those that do will now have
multiple footnotes. You might want to manually combine them or write a more complicated program to handle them. These steps
also assume that the name __date is not used anywhere. However, the program does check this and also lists all ENTRYFOOTNOTE statements. Be careful to check
the SAS log to ensure that all templates compile without error. Also, before using templates that are automatically modified,
make sure your modifications are reasonable.

You can delete Sasuser.Templat and hence all modified templates (assuming the default template search path) as follows: