For example take sashelp.cars dataset. I want to print image of each model in my final output along with other columns like horsepower etc . I have .jpg images saved externally with model name and want to print right image in front of right model .
This means that for each row I might have different image .
i would like output in Excel if not possible then PDF.
Can anyone help me how to do this in SAS9.2 ? Below is sample code but I do ot know how to add a column with image as content of it.
ods pdf file="&output_location./report.html";
proc report data=sashelp.cars(keep=model type horsepower origin);
where origin='Europe' and type='Sedan';
column model horsepower;
run;
ods pdf close;
Hi mate,
I've never try this but checkout this Embed images in a PROC REPORT table
There is a code and you can try yourself.
Hope this helps
"Ods pdf text" statement may help you to add external images
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.