BookmarkSubscribeRSS Feed
PSIOT
SAS Employee

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,

1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
You don't say how you are generating the graphs, and from your code, it looks like you are inserting vol1.png into every cell.

But it might be possible to use SGPANEL or ODS LAYOUT, as shown in this paper (see last example for ODS LAYOUT): http://support.sas.com/resources/papers/proceedings16/SAS5762-2016.pdf and this paper shows an older way with a simple PROC REPORT -- the PROC REPORT has been designed to have 2 columns side by side and then there is a different preimage for each column and row:http://www2.sas.com/proceedings/forum2008/173-2008.pdf

cynthia

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 847 views
  • 0 likes
  • 2 in conversation