<?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: SG and graphics as GRSEG catalog entry in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203211#M10888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankfully I only had minimal contact with pre-template graphs.&amp;nbsp; There is a big difference in what is generated.&amp;nbsp; Behind the scens of an sgplot call is the definition of a Template.&amp;nbsp; This is in the form of a graph template.&amp;nbsp; Data is then fed into the template.&amp;nbsp; You can write these yourself and store them in catalogs if needed:&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define statgraph &amp;lt;title&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the template code from the sgplot by using the tmplout="..." option to store the text to a file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, please use consistent casing and indentation in code, makes it so much easier to read (and also I am not sure your code would run without proper spacing):&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatter x=height y=weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 09:30:28 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-08-20T09:30:28Z</dc:date>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203210#M10887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have specified my question precisely. Can I write out a Catalogue Entry (GRSEG) with a SG procedure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 08:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203210#M10887</guid>
      <dc:creator>Natalie</dc:creator>
      <dc:date>2015-08-20T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203211#M10888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankfully I only had minimal contact with pre-template graphs.&amp;nbsp; There is a big difference in what is generated.&amp;nbsp; Behind the scens of an sgplot call is the definition of a Template.&amp;nbsp; This is in the form of a graph template.&amp;nbsp; Data is then fed into the template.&amp;nbsp; You can write these yourself and store them in catalogs if needed:&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define statgraph &amp;lt;title&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the template code from the sgplot by using the tmplout="..." option to store the text to a file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, please use consistent casing and indentation in code, makes it so much easier to read (and also I am not sure your code would run without proper spacing):&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatter x=height y=weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 09:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203211#M10888</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-20T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203212#M10889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so. The SG procedures use ODS graphics. You can save the output to a bunch of destinations such as PNG, PDF, RTF, etc, but I don't think you can create an old-style graphics catalog entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 11:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203212#M10889</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-08-20T11:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203213#M10890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that is the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learned however, that it's possible to create an old-style catalog entry out of a PNG-figure with the GSLIDE procedure and IBACK= and GOUT= option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;GOPTIONS IBACK&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;SPAN style="color: purple;"&gt;"path\graph.png" &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;IMAGESTYLE&lt;/SPAN&gt;=FIT; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; font-family: 'Courier New';"&gt;PROC GSLIDE &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="color: blue;"&gt;GOUT&lt;/SPAN&gt; = &amp;lt;catalog entry name&amp;gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;QUIT;&lt;STRONG style="color: navy; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 12:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203213#M10890</guid>
      <dc:creator>Natalie</dc:creator>
      <dc:date>2015-08-20T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203214#M10891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May I ask, why do you need this "catalog" entry?&amp;nbsp; Personally I would avoid anything "catalog" orientated as historical.&amp;nbsp; You can have the template as a plain text file, your code as a plain text file, and your data as a dataset (or plain csv if you want to go completely non-prop).&amp;nbsp; No hidden things, no trying to track down catlogs, or working out how to get information out of them etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 12:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203214#M10891</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-20T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203215#M10892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question. It's currently the default setting for the figure output in our reporting system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 12:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203215#M10892</guid>
      <dc:creator>Natalie</dc:creator>
      <dc:date>2015-08-20T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: SG and graphics as GRSEG catalog entry</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203216#M10893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you are creating the graphics for specific output to a specialized printer, code like Target= and interesting GDEVICE settings, it may be time to talk to the users of the output. There are enough additional features available in the SG procedures as well as having output to RTF, PDF and other easier to read and manipulate formats that it could be worth changing over completely. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 16:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-SG-and-graphics-as-GRSEG-catalog-entry/m-p/203216#M10893</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-20T16:11:34Z</dc:date>
    </item>
  </channel>
</rss>

