BookmarkSubscribeRSS Feed
mmea
Quartz | Level 8

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
ballardw
Super User

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.

mmea
Quartz | Level 8
Spoiler
 


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

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 914 views
  • 0 likes
  • 2 in conversation