I am using CALL DEFINE to place images in a PROC REPORT text cell. I would like the text to adjust vertically and if possible to have the images (PREIMAGE and POSTIMAGE) aligned with each other vertically. Clearly the VJUST is not doing anything and I am looking for suggestions. An image of the current PDF output is attached.
ods pdf file='c:\temp\wrap.pdf';
proc report data=class;
column name age text;
compute text;
length style $200;
style= 'style={cellwidth=2in vjust=t preimage="c:\temp\male.jpg" postimage="c:\temp\female.jpg"}';
call define('text','style',style);
endcomp;
run;
ods pdf close;
data class; set sashelp.class; retain text '~nxxxxxxxxxxxxx~nxxxxxxxxxxxxxx~n'; run; ods escapechar='~'; ods pdf file='/folders/myfolders/x.pdf' style=minial; proc report data=class nowd noheader; column name age text; define text/display style={preimage='/folders/myfolders/x.png' postimage='/folders/myfolders/y.png' just=center}; run; ods pdf close;
At @Ksharp's suggestion I have reposted this query in the ODS and Reporting forum. Please go there to respond or view responses.
Arthur.T, Did you check my code ? Is that what you are looking for ?
@Ksharp - responding on the other thread.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.