Although "proc lifetest" generates graphs, it isn't per-say a SAS/Graph proc, and they do things a little differently ... so I'm not too familiar with it.
But I do have 1 example, and it controls the name of the png files using "ods graphics" imagename= option, such as:
ODS LISTING CLOSE;
ODS HTML path=odsout body="&name..htm" style=Theme;
ods graphics on / imagefmt=staticmap imagename="&name";
(Rather than using the &name macro variable, you could probably put in whatever name you want
🙂
Here's the full example, if you want to see it:
http://robslink.com/SAS/democd20/life.htm
http://robslink.com/SAS/democd20/life_info.htm