Yennie - when I run the code I provided, it produces both a png file and an htm file, such as ...
login003> ls -lt foo*
-rwxr-xr-x 1 realliso isd 3172 Mar 24 08:11 foo.htm
-rwxr-xr-x 1 realliso isd 7569 Mar 24 08:11 foo.png
Try running the code from Windows SAS, as-is (with no changes), from a fresh SAS session. Oh, and not from EG. ... and I bet it will produce both files for you 🙂
With that as your starting place, then try adding your own SAS/Graph proc, and make sure it still produces both files. And then try running it from EG, etc, etc. At each point, making sure it produces both files. Perhaps your SAS session has a setting that's overriding the code, or maybe something similar if you're running from EG.