<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issues creating &amp; exporting graphs in sas in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189127#M6972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And here's another using ODS PDF Columns option and basically manually sizing the graphs so it fits 4 to a page. But this makes it easier if you have different plots required for each quadrant and easier to modify in my opinion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;options&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;orientation&lt;SPAN style="color: #000000;"&gt;=landscape &lt;/SPAN&gt;nodate&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;nonumber&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;pdf&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;file&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;'C:\temp\sample.pdf'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;columns&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;style&lt;SPAN style="color: #000000;"&gt;=journal &lt;/SPAN&gt;startpage&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;no&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;graphics&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;on&lt;SPAN style="color: #000000;"&gt;/&lt;/SPAN&gt;width&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;in&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;height&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;in&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"IBM"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"Intel"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"Microsoft"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"IBM"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;graphics&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;off&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;pdf&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;close&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 02:34:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-03-03T02:34:27Z</dc:date>
    <item>
      <title>Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189124#M6969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have a list of 20-30 factors which I would like to create 4 graphs each for. Ideally I would like them in an excel file, each on a separate sheet (four graphs per sheet) but I know that's next too impossible. Exporting to powerpoint and pdf are sufficient alternatives. What I like about Excel is that you can separate each factor into its own workbook. I have started the process off using robslink.com as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;My code is below (which I took from &lt;A class="jive-link-external-small" href="http://www.robslink.com/SAS/democd7/clin1_info.htm" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;http://www.robslink.com/SAS/democd7/clin1_info.htm&lt;/A&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Couple of points:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am trying to get one factor right so I have just created a dataset with one factor and dummy values.&lt;/LI&gt;&lt;LI&gt;I want 4 graphs but using the same graph here 4 times for illustrative purposes&lt;/LI&gt;&lt;LI&gt;In the reference above, the first few lines of code where he defines htmlvar, I'm not sure what this does.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;My main challenges are:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the link above he creates a bar chart with a line chart on a secondary graph and retains with a "MS excel look". I can reproduce a single graph but I need guidance on how to create 4 on a single page, that are the same size. I'm not sure what the code highlighted in red does.&lt;/LI&gt;&lt;LI&gt;I want the code to be flexible so that it can handle loads of different factors with different ranges of levels, some numeric (age) and some character (occupation).&lt;/LI&gt;&lt;LI&gt;The code highlighted in pink is not from the above link. I took it from a different source about exporting 4 graphs to a pdf. it doesn't work properly for me (graphs appear on a pdf but they don't have the format&amp;nbsp; created by robslink code and they are not fitted correctly on the page.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data my_data; &lt;BR /&gt;INFILE DATALINES DLM=',';&lt;BR /&gt;format factor level $16.;&lt;BR /&gt;input factor $ level $ exposure lossratio ;&lt;BR /&gt;datalines ;&lt;BR /&gt;occupation,professional,500,.44&lt;BR /&gt;occupation,student,1000,.55&lt;BR /&gt;occupation,retired,2000,.75&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;data my_data; set my_data;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;length htmlvar $500;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;htmlvar=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;'title='||quote(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp; 'Level: '|| trim(left(level)) ||'0D'x||&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp; 'Vehicle Exposure Years: '|| trim(left(v01_veh_exp_years))||&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp; 'Loss Ratio: '|| trim(left(all_LR)))||&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;' href="clin1_info.htm"';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;goptions device=png;&lt;BR /&gt;goptions xpixels=750 ypixels=500;&lt;BR /&gt;goptions noborder;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ODS LISTING CLOSE;&lt;BR /&gt;ODS HTML path=odsout body="&amp;amp;name..htm" &lt;BR /&gt;(title="SAS/Graph gbarline Line &amp;amp; Column Chart") style=sasweb;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;goptions gunit=pct htitle=6 ftitle="albany amt/bold" htext=4.25 ftext="albany amt/bold";&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;title1 ls=1.5 "&amp;amp;name. - LR";&lt;BR /&gt;/*title2 "Classic Combination Chart";*/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;pattern1 v=solid color=cx993366; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;symbol1 interpol=join width=3 value=dot height=4 color=navy; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;axis1 label=(a=90 'Exposure Years') offset=(0,2) order=(0 to 30000 by 5000) major=(h=-1) minor=none;&lt;BR /&gt;axis2 label=(a=90 'Loss Ratio') offset=(0,2) order=(0 to 2 by .5) major=(h=-1) minor=none;&lt;BR /&gt;axis3 label = none value=(angle=90) offset=(13,13) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;device=pdfc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;ftext="swissb";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;ods pdf file="H:\Commercial\Fleet\Presentations\four in one.pdf" startpage=never;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;ods proclabel "Four graphs on one page" ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;goptions hsize=5.20 in vsize=3.75 in;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;title1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc gbarline data=my_data2;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;goptions horigin=0in vorigin=3.99 in;&lt;/SPAN&gt;&lt;BR /&gt;bar level / discrete &lt;BR /&gt;&amp;nbsp; type=sum sumvar=v01_veh_exp_years &lt;BR /&gt;&amp;nbsp; axis=axis1 maxis=axis3 &lt;BR /&gt;&amp;nbsp; space=5 width=6 &lt;BR /&gt;&amp;nbsp; html=htmlvar &lt;BR /&gt;&amp;nbsp; des='' name="&amp;amp;name" ;&lt;BR /&gt;plot / &lt;BR /&gt;&amp;nbsp; type=sum sumvar=all_LR &lt;BR /&gt;&amp;nbsp; axis=axis2 &lt;BR /&gt;&amp;nbsp; html=htmlvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc gbarline data=my_data2;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;goptions horigin=5.25;&lt;/SPAN&gt;&lt;BR /&gt;bar level / discrete &lt;BR /&gt;&amp;nbsp; type=sum sumvar=v01_veh_exp_years &lt;BR /&gt;&amp;nbsp; axis=axis1 maxis=axis3 &lt;BR /&gt;&amp;nbsp; space=5 width=6 &lt;BR /&gt;&amp;nbsp; html=htmlvar &lt;BR /&gt;&amp;nbsp; des='' name="&amp;amp;name" ;&lt;BR /&gt;plot / &lt;BR /&gt;&amp;nbsp; type=sum sumvar=all_LR &lt;BR /&gt;&amp;nbsp; axis=axis2 &lt;BR /&gt;&amp;nbsp; html=htmlvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;proc gbarline data=my_data2;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;goptions hsize= 5.20in vsize= 3.75in device=pdfc ftext="swissb"&lt;/SPAN&gt;&lt;BR /&gt;bar level / discrete &lt;BR /&gt;&amp;nbsp; type=sum sumvar=v01_veh_exp_years &lt;BR /&gt;&amp;nbsp; axis=axis1 maxis=axis3 &lt;BR /&gt;&amp;nbsp; space=5 width=6 &lt;BR /&gt;&amp;nbsp; html=htmlvar &lt;BR /&gt;&amp;nbsp; des='' name="&amp;amp;name" ;&lt;BR /&gt;plot / &lt;BR /&gt;&amp;nbsp; type=sum sumvar=all_LR &lt;BR /&gt;&amp;nbsp; axis=axis2 &lt;BR /&gt;&amp;nbsp; html=htmlvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;proc gbarline data=my_data2;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;goptions horigin=5.25 in;&lt;/SPAN&gt;&lt;BR /&gt;bar level / discrete &lt;BR /&gt;&amp;nbsp; type=sum sumvar=v01_veh_exp_years &lt;BR /&gt;&amp;nbsp; axis=axis1 maxis=axis3 &lt;BR /&gt;&amp;nbsp; space=5 width=6 &lt;BR /&gt;&amp;nbsp; html=htmlvar &lt;BR /&gt;&amp;nbsp; des='' name="&amp;amp;name" ;&lt;BR /&gt;plot / &lt;BR /&gt;&amp;nbsp; type=sum sumvar=all_LR &lt;BR /&gt;&amp;nbsp; axis=axis2 &lt;BR /&gt;&amp;nbsp; html=htmlvar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;ods pdf close;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 22:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189124#M6969</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-03-02T22:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189125#M6970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Would SGPanel work or do you want 4 separate graphs on a single page?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;Found the answers &lt;A __default_attr="72111" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/" modifiedtitle="true" title="Creating and exporting graphs to excel"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What version of SAS do you have? SAS 9.3&lt;/P&gt;&lt;P&gt;What does your sample data look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 01:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189125#M6970</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T01:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189126#M6971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the hard part is going to be how to get your data in the format for the plots. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's one way using GTL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; have;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;input&lt;/SPAN&gt; factor $ level no_of_observations exposure Ratio1 Ratio2 value1 value2;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;cards&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;factor1 1 500 1000 105 35 2000 348&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;factor1 2 1000 2000 82 25 3000 200&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;factor1 3 20000 3000 80 22 2000 320&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;factor1 4 23000 500 76 21 1000 430&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;factor1 5 22333 8000 86 40 3500 1200&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;template&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;define&lt;/SPAN&gt; statgraph fourInOne;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #ff2600;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;begingraph&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff2600;"&gt;entrytitle&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;'4 graphs on one page'&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;layout&lt;/SPAN&gt; gridded/ rows=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; columns=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;layout&lt;/SPAN&gt; overlay;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;seriesplot&lt;/SPAN&gt; x=level y=exposure;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #ff2600;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;endlayout&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;layout&lt;/SPAN&gt; overlay;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;seriesplot&lt;/SPAN&gt; x=level y=ratio1;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #ff2600;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;endlayout&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;layout&lt;/SPAN&gt; overlay;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;seriesplot&lt;/SPAN&gt; x=level y=ratio2;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #ff2600;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;endlayout&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;layout&lt;/SPAN&gt; overlay;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;seriesplot&lt;/SPAN&gt; x=level y=value1;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #ff2600;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;endlayout&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff2600;"&gt;endlayout&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #ff2600;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;endgraph&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgrender&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=have &lt;SPAN style="color: #0433ff;"&gt;template&lt;/SPAN&gt;=fourInOne;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 02:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189126#M6971</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T02:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189127#M6972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And here's another using ODS PDF Columns option and basically manually sizing the graphs so it fits 4 to a page. But this makes it easier if you have different plots required for each quadrant and easier to modify in my opinion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;options&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;orientation&lt;SPAN style="color: #000000;"&gt;=landscape &lt;/SPAN&gt;nodate&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;nonumber&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;pdf&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;file&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;'C:\temp\sample.pdf'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;columns&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;style&lt;SPAN style="color: #000000;"&gt;=journal &lt;/SPAN&gt;startpage&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;no&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;graphics&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;on&lt;SPAN style="color: #000000;"&gt;/&lt;/SPAN&gt;width&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;in&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;height&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;in&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"IBM"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"Intel"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"Microsoft"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"IBM"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;graphics&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;off&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;pdf&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;close&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 02:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189127#M6972</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T02:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189128#M6973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Reeza&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The second example you gave is exactly what I'm looking for so thank you for that. Just a couple of questions...&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;My version of SAS is 9.3 by the way.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The formatting is not that important. However, is it possible to incorporate color into the graphs and control the position of the legend? Can I also change the size of the graphs so there is less of a gap between each graph (I will be using for a presentation).&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Is it possible (either directly or indirectly) to export each page to a slide in Powerpoint?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Similarly, is it possible to export each graph to a sheet in an excel workbook?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1582px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="180"&gt;factor&lt;/TD&gt;&lt;TD width="80"&gt;level&lt;/TD&gt;&lt;TD width="130"&gt;policy_years&lt;/TD&gt;&lt;TD width="70"&gt;Loss Ratio&lt;/TD&gt;&lt;TD width="70"&gt;Freq&lt;/TD&gt;&lt;TD width="84"&gt;Sev&lt;/TD&gt;&lt;TD width="129"&gt;Claim No's&lt;/TD&gt;&lt;TD width="125"&gt;Total Clm Amt&lt;/TD&gt;&lt;TD width="84"&gt;Prem&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2008&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2009&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2010&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2011&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2012&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2013&lt;/TD&gt;&lt;TD width="90"&gt;exp_yrs_2014&lt;/TD&gt;An example of my dataset (for one factor) is shown below:&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Age&lt;/TD&gt;&lt;TD&gt;Old&lt;/TD&gt;&lt;TD align="right"&gt;6000&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;76%&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;60%&lt;/TD&gt;&lt;TD align="right"&gt;4000&lt;/TD&gt;&lt;TD align="right"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;6400000&lt;/TD&gt;&lt;TD align="right"&gt;4000000&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,000&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 750&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Age&lt;/TD&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD align="right"&gt;20000&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;54%&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;50%&lt;/TD&gt;&lt;TD align="right"&gt;3250&lt;/TD&gt;&lt;TD align="right"&gt;4500&lt;/TD&gt;&lt;TD align="right"&gt;2500000&lt;/TD&gt;&lt;TD align="right"&gt;8000000&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,000&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,250&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,500&lt;/TD&gt;&lt;TD class="xl65"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,750&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have also include a screenshot of the graphs for this factor I produced in excel.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;You will see that the 4th graph is a different to the others i.e. no bars just lines. Can such a graph be factored into the code above?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Matthew&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;p.s. I couldn't include the screenshot but it's the same as the one in the link to my other post above.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 11:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189128#M6973</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-03-03T11:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189129#M6974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;However, is it possible to incorporate color into the graphs and control the position of the legend?&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, change the style in the ODS PDF statement. For example, Meadow and Seaside are two styles I like. You can also customize your own styles but that's a lot of work. The legend can be customized in the PROC SGPLOT code.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Can I also change the size of the graphs so there is less of a gap between each graph (I will be using for a presentation).&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yes, see the size is set at the top of the code using the width/height option, I've set it to 3/4 inches just to get 4 graphs on the page, but you will need to customize it to suit your needs.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is it possible (either directly or indirectly) to export each page to a slide in Powerpoint?&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In SAS 9.4 yes, in SAS 9.3, no.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Similarly, is it possible to export each graph to a sheet in an excel workbook?&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Not AFAIK in SAS 9.3, yes in SAS 9.4. You can get all graphs into one sheet using ODS MSOFFICE_2K destination. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;What you can do is generate the PNG files - image files and then place them where ever you want, in PDF, PowerPoint and Excel.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;You will see that the 4th graph is a different to the others i.e. no bars just lines. Can such a graph be factored into the code above?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, because each proc sgplot is independent the graphs can be different and can use different source data, I think you'll need a different data structure for your last graph so this method will work better as well. You just need to customize the SGPLOT for the graph you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189129#M6974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189130#M6975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza, how would you adjust the code above to create png file for each factor and is there a way of automating the process of importing them to powerpoint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code above, the graphs lose their colour when exporting to pdf - is there a way to avoid this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, how would you adjust the above code to include one factor on each page in the pdf?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189130#M6975</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-03-03T16:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189131#M6976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;how would you adjust the code above to create png file for each factor&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Write a macro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;is there a way of automating the process of importing them to powerpoint?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I'm not sure about this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;the graphs lose their colour when exporting to pdf&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;No, they're set to not have color, change the STYLE in the ODS PDF statement, as mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;how would you adjust the above code to include one factor on each page in the pdf?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Remove the columns=2 from the ODS PDF statement and change the size. This is the default behaviour so you should get this by simply using the ODS PDF destination without any additional options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will generate the images as PNG files as well in the C:\Temp folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;options&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;orientation&lt;SPAN style="color: #000000;"&gt;=landscape &lt;/SPAN&gt;nodate&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;nonumber&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;listing&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;gpath&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;'C:\temp'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #0433ff;"&gt;ods&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;pdf&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;'C:\temp\sample.pdf'&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=meadow;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;graphics&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;on&lt;SPAN style="color: #000000;"&gt;/&lt;/SPAN&gt;width&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/SPAN&gt;in&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;height&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;in&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"IBM"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"Intel"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"Microsoft"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.stocks (where=(date &amp;gt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2000"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and date &amp;lt;= &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;"01jan2001"d&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and stock = &lt;SPAN style="color: #942193;"&gt;"IBM"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Stock Volume vs. Close"&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vbar&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=volume;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;vline&lt;/SPAN&gt; date / &lt;SPAN style="color: #0433ff;"&gt;response&lt;/SPAN&gt;=close &lt;SPAN style="color: #0433ff;"&gt;y2axis&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;graphics&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;off&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;ods&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;pdf&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;close&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189131#M6976</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T16:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189132#M6977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably bulk insert the images into your powerpoint presentation using the photo album method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.office.com/en-au/article/Create-and-share-a-photo-album-6febdf8b-5179-4e63-90a6-0fb68df97ec6" title="https://support.office.com/en-au/article/Create-and-share-a-photo-album-6febdf8b-5179-4e63-90a6-0fb68df97ec6"&gt;Create and share a photo album&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189132#M6977</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189133#M6978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the fourth graph in the above I've included a proc transpose so that I can achieve the fourth graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="407"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;exposureyear&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="180"&gt;factor&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="98"&gt;level&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="65"&gt;exposure&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2008&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;760&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2009&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;171&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2010&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Construction&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;857&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2010&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;137&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2010&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Warehouse&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;547&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Construction&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;985&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;718&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Warehouse&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;21&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Construction&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;361&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;398&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Warehouse&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;617&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Construction&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;896&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;679&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Warehouse&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;490&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Construction&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;494&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Manufacturing&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;576&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;occupation&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Warehouse&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;705&lt;/TD&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20" width="64"&gt;exposureyear&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;_NAME_&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Manufacturing&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Construction&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Warehouse&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2008&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt; &lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2009&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt; &lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2010&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;163&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;240&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;9&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2011&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1474&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;781&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;11&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2012&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1169&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;804&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;11&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2013&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;795&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1122&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;27&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2014&lt;/TD&gt;&amp;nbsp; &lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;exposure&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;488&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;996&lt;/TD&gt;&amp;nbsp; &lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;29&lt;/TD&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a graph is created using the code you recommended earlier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=Egidwh_oneway4 (where=(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factor = "&amp;amp;factor"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; title "&amp;amp;factor - Severity";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level/ response=manufacturing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level / response=Construction;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level / response=Warehouse;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the only problem is that I have 70 or so factors. Creating the transposed dataset for each is fine, the only issue is that the number of levels (and names) vary by factor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would need some sort of macro/looping procedure that counts the number of unique levels and creates the graph with the number of graphs equal to the number of levels in the factor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it was possible (and this would be ideal) I would like to limit the number of graphs to 7 by including the top 7 levels (in terms of total exposure years over the period 2008 to 2014).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189133#M6978</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-03-03T17:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189134#M6979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it's all possible, but I don't want to write the code &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can the GROUP=level and then the response as exposure instead of transposing the data to get multiple lines on a single graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to try some of this and then come back with more specific questions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189134#M6979</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T17:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189135#M6980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand but to be honest, I don't know where to start... I think I get the program to work out the number of unique levels in each factor but I don't know how to incorporate this information to work graph based on varying numbers in each level. Say, the number of levels is 4 for one factor and 7 for the other, could you give some guidance as to how you would allow for this in this part of the proc sgplot procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 levels&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level/ response=level1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level / response=level2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level / response=level3;&lt;/P&gt;&lt;P&gt;.&amp;nbsp; vline level / response=level4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 levels&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level/ response=level1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level / response=level2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vline level / response=level3;&lt;/P&gt;&lt;P&gt;.&amp;nbsp; vline level / response=level4; &lt;/P&gt;&lt;P&gt; vline level / response=level5; &lt;/P&gt;&lt;P&gt; vline level / response=level6; &lt;/P&gt;&lt;P&gt; vline level / response=level7; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how you would code to allow varying numbers of levels in the proc sgplot procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 18:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189135#M6980</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-03-03T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issues creating &amp; exporting graphs in sas</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189136#M6981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I think you can the GROUP=level and then the response as exposure instead of transposing the data to get multiple lines on a single graph.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;You have your data in the wrong structure. Use the GROUP= option on a VLINE statement instead then it doesn't matter how many levels you have. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;VLINE level/group=level response=measure;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 18:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issues-creating-exporting-graphs-in-sas/m-p/189136#M6981</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T18:36:41Z</dc:date>
    </item>
  </channel>
</rss>

