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,
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.