<?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: Creating a graph in one program but printing it in another in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439385#M20484</link>
    <description>&lt;P&gt;The ODS DOCUMENT statement opens a document--a repository of information.&amp;nbsp; Leave it open as long as you like.&amp;nbsp; You can close it and reopen it if you like.&amp;nbsp; At the end, you close it.&amp;nbsp; The WRITE option starts a new document discarding any information that was there.&amp;nbsp; Without that option, new output is appended to the document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, yes, use PROC DOCUMENT to display any subset of the results. You can even reorder the results.&amp;nbsp; You can change the results.&amp;nbsp; There is A LOT that you can do with PROC DOCUMENT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will typically need to run PROC DOCUMENT to list the contents of the document so that you know what paths to specify.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 17:53:53 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2018-02-22T17:53:53Z</dc:date>
    <item>
      <title>Creating a graph in one program but printing it in another</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439309#M20473</link>
      <description>&lt;P&gt;Is it possible to create a graph in one program but print/reference it in another program&amp;nbsp;for ODS output to excel.&amp;nbsp; I have about 5 different programs that do certain tasks and create various tables and graphs.&amp;nbsp; I want to then export all of those to an excel file at the end.&amp;nbsp; I figured out how to loop through all the work tables and print them but I cant seem to figure out how to reference a graph created in another program.&amp;nbsp; I am hoping it is just some option I am missing in the SGPLOT procedure.&amp;nbsp; I would like to avoid creating a persistent file (like a .png file) if possible and hoping I can just reference it in memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I want to do it this way is this is going to be a process that will expand over time.&amp;nbsp; More graphs/tables may be added and I don't want to have to repeat code multiple times when we add new processes&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439309#M20473</guid>
      <dc:creator>hulksmash</dc:creator>
      <dc:date>2018-02-22T15:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a graph in one program but printing it in another</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439310#M20474</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; Store the results in the ODS document.&amp;nbsp; This example works just within a step, but the documentation shows you how to save the document.&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0nz6m09jrb7jsn1h8rngbvzk65u.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0nz6m09jrb7jsn1h8rngbvzk65u.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=MyDoc (write);
proc reg data=sashelp.class;
   model weight=height;
quit;
ods document close;

proc document name=MyDoc;
   list / levels=all;
quit;

proc document name=MyDoc;
   replay \Reg#1\MODEL1#1\ObswiseStats#1\Weight#1\FitPlot#1;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439310#M20474</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-02-22T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a graph in one program but printing it in another</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439384#M20483</link>
      <description>&lt;P&gt;Looks like this may be what I am looking for.&amp;nbsp; To be clear I will need to run the "ods document name=mydoc;" before each program correct and than use the "proc document" at the end to list and ODS to excel?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 17:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439384#M20483</guid>
      <dc:creator>hulksmash</dc:creator>
      <dc:date>2018-02-22T17:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a graph in one program but printing it in another</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439385#M20484</link>
      <description>&lt;P&gt;The ODS DOCUMENT statement opens a document--a repository of information.&amp;nbsp; Leave it open as long as you like.&amp;nbsp; You can close it and reopen it if you like.&amp;nbsp; At the end, you close it.&amp;nbsp; The WRITE option starts a new document discarding any information that was there.&amp;nbsp; Without that option, new output is appended to the document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, yes, use PROC DOCUMENT to display any subset of the results. You can even reorder the results.&amp;nbsp; You can change the results.&amp;nbsp; There is A LOT that you can do with PROC DOCUMENT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will typically need to run PROC DOCUMENT to list the contents of the document so that you know what paths to specify.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 17:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-graph-in-one-program-but-printing-it-in-another/m-p/439385#M20484</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-02-22T17:53:53Z</dc:date>
    </item>
  </channel>
</rss>

