Dear all,
I would like to put graphs on the same page and on the same level in ods document that manage also a content.
My program uses 'proc format cntlin=' and diplays graphs in one column on same page. Then I can display several graphs on same page but each one under the previous one. Is it possible with same method to display also graphs on the same level.
Please find my code:
SAS code:
data fmt;
set pt1;
fmtname = "mypic";
start =1;
label = "\\vcarapp010\Rapports\01-ETUDE PIVOT\Graphs\strokeVol1.png";
keep fmtname label start;
run;
/* Create the format containing the links to the images. */
proc format cntlin=fmt;
run;
/* Create a format to blank out values in the column that will contain the image. */
proc format;
value blank other=" ";
run;
ods listing close;
data pt1;
set pt1;
index=1;
run;
ods rtf startpage=no;
ods proclabel ' ';
proc report data=pt1 nowd CONTENTS='Graph 1.6: Time trajectories post-implant for left and right stroke volume, setting of right input pressure and avg. L/R admission P. ratio';
column index image;
define index / group noprint;
break before index/ contents="" page;
define image/ computed style(column)=[postimage=mypic. just=l cellwidth=3.1 in ] format=blank.;
/* Set the computed variable equal to the variable */
/* value that matches the value in the $Mypic. format. */
compute image ;
image = 1;
endcomp;
title2 'Graph 1.6: Time trajectories post-implant for left and right stroke volume, setting of right input pressure and avg. L/R admission P. ratio';
run;
Regards,
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.