<?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 Collecting existing files into a word document in a given order in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625242#M23782</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is whether there is a way to collect existing files (txt, png, rtf etc) into a word document (docx) and create a TOC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Building a docx file from scratch is a possibility but if SAS already has this functionality then it would be good to be aware of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The desired output (docx) should contain the files according to a pre defined order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex&amp;nbsp;Table 1 ... Table 10, Graph1, Table11 - Table13, Graph2 - Graph5, ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So running the programs in a given order using ODS is not practical as there can easily become hundreds of them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Jan&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 12:04:21 GMT</pubDate>
    <dc:creator>janpeter</dc:creator>
    <dc:date>2020-02-17T12:04:21Z</dc:date>
    <item>
      <title>Collecting existing files into a word document in a given order</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625242#M23782</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is whether there is a way to collect existing files (txt, png, rtf etc) into a word document (docx) and create a TOC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Building a docx file from scratch is a possibility but if SAS already has this functionality then it would be good to be aware of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The desired output (docx) should contain the files according to a pre defined order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex&amp;nbsp;Table 1 ... Table 10, Graph1, Table11 - Table13, Graph2 - Graph5, ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So running the programs in a given order using ODS is not practical as there can easily become hundreds of them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Jan&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 12:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625242#M23782</guid>
      <dc:creator>janpeter</dc:creator>
      <dc:date>2020-02-17T12:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting existing files into a word document in a given order</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625344#M23786</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If all the output is created by SAS and if you can run the programs and save the output objects in an ODS DOCUMENT store, then you can rearrange and replay the objects in the order/structure you make. See this paper &lt;A href="https://support.sas.com/resources/papers/sgf09/318-2009.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/sgf09/318-2009.pdf&lt;/A&gt; and notice how, originally, the PROC TABULATE and the UNIVARIATE output is created and structured (on page 4, it shows all the TABULATE followed by all the UNIVARIATE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, in the paper, the desired output is to have the results organized by country and not by procedure. So after storing the objects in a document store, the objects are restructured and replayed as shown on page 7, Figure 11.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Alternately, you could write a SAS Macro program to control the creation of the results in the order you choose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 16:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625344#M23786</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-02-17T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting existing files into a word document in a given order</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625450#M23789</link>
      <description>&lt;P&gt;DOCX output support is coming but not totally there yet:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The SAS® Output Delivery System (ODS) destination for Word enables customers to deliver&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SAS® reports as native Microsoft Word documents. The ODS WORD statement generates&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;reports in the Office Open XML Document (.docx) format&amp;nbsp; [8&amp;gt;&amp;lt;]&amp;nbsp;ODS WORD is preproduction in the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sixth maintenance release of SAS 9.4. &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3235-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3235-2019.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 21:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/625450#M23789</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-17T21:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting existing files into a word document in a given order</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/654544#M24173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Cynthia&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;sorry for the very late reply. Thank you for your answer. it looks promising.&lt;/P&gt;&lt;P&gt;I would guess that this also works for docx? currently i have it as preproduction in my SAS version but it will most likely be the standard to go with in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;jan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/654544#M24173</guid>
      <dc:creator>janpeter</dc:creator>
      <dc:date>2020-06-08T14:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting existing files into a word document in a given order</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/654545#M24174</link>
      <description>thanks Chris,&lt;BR /&gt;br&lt;BR /&gt;JP</description>
      <pubDate>Mon, 08 Jun 2020 14:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Collecting-existing-files-into-a-word-document-in-a-given-order/m-p/654545#M24174</guid>
      <dc:creator>janpeter</dc:creator>
      <dc:date>2020-06-08T14:45:08Z</dc:date>
    </item>
  </channel>
</rss>

