- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 01-25-2021 06:00 AM
(939 views)
Hi I have a SGPLOT as a PNG file, and a proc tabulate as an PNG file.
I would like to put these to as ONE png file, but not PDF. I tried to do it with PDF it worked - but i have to put it in an email (not an attachement) an it did not work with a PDF.
Is it possible to merge to png's to oone?
PROC TABULATE data=metode_count ;
CLASS new1 method;
var count;
table new1 = '' all={label='Total'}, method='' * count = '' * sum=''/row=float misstext='0';
RUN;
ROC SGPLOT DATA = Merged_1 PCTLEVEL=GROUP NOBORDER NOWALL NOCYCLEATTRS ;
format dato ddmmyy.;
VBAR method/GROUP = days stat= percent NOOUTLINE;
TITLE 'An';
keylegend / title="";
XAXIS DISPLAY=(NOLABEL);
YAXIS DISPLAY=(NOLABEL);
FORMAT days days.;
styleattrs DATACOLORS=('#CBE5A1' '#FFFF00' mistyrose firebrick );
run;
the tabel should be under the sgplot in a PNG file
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am real interested in how you created a PNG of that proc tabulate since you don't show it.
SAS is not really set up for post processing of output file formats.
If you provide data for both of those sets we might have suggestions to get all the information into a single graphic image file. Maybe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
options printerpath=(png out) nodate nonumber papersize=('4in','4in');
filename out 'F:\test\out2.png';
ods listing close;
ods printer;
PROC TABULATE data=metode_count;
CLASS new1 metode;
var count;
table new1 = '' all={label='Total'}, metode='' * count = '' * sum=''/row=float misstext='0';
RUN;
ods printer close;
ods listing;
ods _all_ close;
title;
**ods listing gpath="\\\Figureframail";
ods listing gpath="F:\test\";
ods graphics / reset=index outputfmt=PNG imagename="Figur1_&todaysDate.";
PROC SGPLOT DATA = Merged_1 PCTLEVEL=GROUP NOBORDER NOWALL NOCYCLEATTRS ;
format dato ddmmyy.;
VBAR metode/GROUP = days stat= percent NOOUTLINE;
TITLE 'An';
keylegend / title="";
XAXIS DISPLAY=(NOLABEL);
YAXIS DISPLAY=(NOLABEL);
FORMAT days days.;
styleattrs DATACOLORS=('#CBE5A1' '#FFFF00' mistyrose firebrick );
run;
ods graphics / reset=index outputfmt=PNG imagename="Figur2_&todaysDate.";
PROC SGPLOT DATA = testdays_2 NOBORDER NOWALL;
format dato ddmmyyd10.;
vbarparm category=dato response=percent/ nooutline;
Title1 font = 'Calibri' height=16pt "An";
keylegend / title="";
styleattrs DATACOLORS=(STEEL);
refline 80/lineattrs=(thickness=2 color=red) label=("Politisk målsætning");
XAXIS DISPLAY=(NOLABEL);
YAXIS DISPLAY=(NOLABEL);
run;
ods listing close;
ods _all_ close;
title;
this is how i save them as PNG's seperately