Controlling the Image Name and Image Format

For ODS Graphics output, by default, the ODS object name is used as the “root” name for the image output file. You can specify names for your graphics image files and the directory in which you want to save them. The IMAGENAME= option specifies the base image file name.

The default image file format is determined by the ODS destination. You can use the OUTPUTFMT= option to specify a different image file format. The formats that are allowed depend on the specified destination.

Note: For a table that shows which formats are allowed for each ODS destination, see Specifying the Image Format.

In the ODS GRAPHICS statement below, taken from Controlling Graphics with the ODS GRAPHICS Statement , the OUTPUTFMT= option specifies that the file type is a PNG:

ods graphics on / 
          width=3.25in
          outputfmt=png
          imagemap=on
          border=off;

You can use the PATH= option in an ODS destination statement to specify where the output is created.

See Also

Last updated: August 18, 2026