DISPLAYIMAGES Procedure

ODS Environment

Currently, only the HTML5 Output Delivery System (ODS) destination with inlined images is supported. Note that many environments default to using HTML5 as the ODS destination, enabling you to use PROC DISPLAYIMAGES without additional statements. However, if you modify the destination, make sure that it is set to HTML5 before you use this procedure to display images.

The following ODS and PROC DISPLAYIMAGES statements show how to direct the outputs of PROC DISPLAYIMAGES to an HTML5 destination, where the BITMAP_MODE='inline' option is used to insert the images directly into the HTML as base64 encodings. These statements close the listing ODS destination, set the destination to HTML5, run PROC DISPLAYIMAGES, and return the ODS output destination to listing.

ods listing close;
ods html5 options(bitmap_mode="inline");
proc displayimages data=mylib.images;
run;
ods html5 close;
ods listing;

Last updated: March 26, 2026