I have prepared some TIFF graphs which I would like to combine on the same page. The attached code presented on this site works well for a *.pdf output. For base SAS there is a greplay macro that allows one to combine graphs. Does any one know if graphs can be combined in SAS UE other than as *.PDF format? If they do can they indicate a posted example?
* close all open ODS destinations ;
ods _all_ close;
* set papersize etc. for PDF ;
options papersize="ISO A4" orientation=portrait;
* open PDF destination
* the &_SASWS_ macro var is pointing to your "MyFolders" location
*;
ods pdf file="/folders/myfolders/CmaxRIT/sample2.PDF";
* set size of graphics ;
ods graphics / width=8cm height=6cm;
* start gridded layout with two columns ;
ods layout gridded columns=2 ;
* generate output for first region ;
ods region;
I think GREPLAY is part of SAS/GRAPH which isn't included in SAS UE. SGPLOT is the 'new' way of doing things, whereas SAS/GRAPH is pretty old and not really high quality graphics to be honest. I'm assuming that's why they didn't include it in SAS UE.
I also just recalled you can make your own graph template using GTL. It's definitely not simple but would give you pretty detailed control over what you want and would likely come out as a single image.
@jacksonan123 wrote:
To your knowledge does SAS UE support Greplay?
@jacksonan123 wrote:
I have prepared some TIFF graphs which I would like to combine on the same page. The attached code presented on this site works well for a *.pdf output. For base SAS there is a greplay macro that allows one to combine graphs. Does any one know if graphs can be combined in SAS UE other than as *.PDF format? If they do can they indicate a posted example?
Perhaps Proc Sgpanel?
A pretty vague question. What ODS destination are you using that is not PDF? HTML and similar do not actually have a "page" concept.
Currently none of the other ODS destinations I am familiar with have any of the "layout" options that PDF does.
How big are the individual images? What size is the destination "page"?
FWIW Greplay requires lots of playing around with text and marker sizes and paying attention to height to width ratios in creation and the replay because everything gets rescaled to fit into the replay display area.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.
Ready to level-up your skills? Choose your own adventure.