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.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.