Hi,
Right now we can add images in reports using postimage.
ods pdf file="&demo./reporting/test.pdf";
proc report data=sashelp.class;
columns sex age height weight;
define sex / display '0D'x style(header)=[postimage="&demo./images/gender.JPG"];
define age / display '0D'x style(header)=[postimage="&demo./images/age.JPG"];
define height / display '0D'x style(header)=[postimage="&demo./images/height.JPG"];
define weight / display '0D'x style(header)=[postimage="&demo./images/weight.JPG"];
run;
ods pdf
I was wondering on whether there is any plan in future SAS release to using the label/attrib statement to create labels which would include images?
Best Regards,
Véronique
Hi:
Depending on the ODS destination you're using, you can use ODS ESCAPECHAR in a LABEL statement to insert an image. But the destination has to support images (for example, using an image with CSV in a LABEL statement will not work).
Cynthia
Here's an example:
Hi:
Depending on the ODS destination you're using, you can use ODS ESCAPECHAR in a LABEL statement to insert an image. But the destination has to support images (for example, using an image with CSV in a LABEL statement will not work).
Cynthia
Here's an example:
Thank you.
Note that with proc report, if you're using slash and not backslash in the path, the default split= option should be modified, e.g. split='*', because split='/' is used by default.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.