<?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 Converting a Word document (including a flowchart/image) into an Excel tab using SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655615#M24180</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a Word document with lots of text which I need to add as a tab to an existing Excel document using SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came up with an approach that I thought would work:&lt;/P&gt;
&lt;P&gt;1. Save the Word doc as a text file (.txt)&lt;/P&gt;
&lt;P&gt;2. Read into SAS as a SAS dataset with a long variable called Label to hold all the text in each line.&lt;/P&gt;
&lt;P&gt;3. Add a variable called Start which is a record counter.&lt;/P&gt;
&lt;P&gt;4. Use PROC FORMAT with CNTLIN to make a format out of those values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Output to Excel a dataset of numbers 1-(number of records) that are formatted using the format in 4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But then I remembered that the original Word document has a flowchart/image in the middle of the document. This obviously complicates things, so now I'm not sure what the best approach would be.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 18:57:45 GMT</pubDate>
    <dc:creator>Walternate</dc:creator>
    <dc:date>2020-06-09T18:57:45Z</dc:date>
    <item>
      <title>Converting a Word document (including a flowchart/image) into an Excel tab using SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655615#M24180</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a Word document with lots of text which I need to add as a tab to an existing Excel document using SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came up with an approach that I thought would work:&lt;/P&gt;
&lt;P&gt;1. Save the Word doc as a text file (.txt)&lt;/P&gt;
&lt;P&gt;2. Read into SAS as a SAS dataset with a long variable called Label to hold all the text in each line.&lt;/P&gt;
&lt;P&gt;3. Add a variable called Start which is a record counter.&lt;/P&gt;
&lt;P&gt;4. Use PROC FORMAT with CNTLIN to make a format out of those values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Output to Excel a dataset of numbers 1-(number of records) that are formatted using the format in 4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But then I remembered that the original Word document has a flowchart/image in the middle of the document. This obviously complicates things, so now I'm not sure what the best approach would be.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 18:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655615#M24180</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2020-06-09T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a Word document (including a flowchart/image) into an Excel tab using SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655621#M24181</link>
      <description>Not using sas seems to be the best approach I can think of. Sas is a great tool to process data, but imho not the right choice to process documents.</description>
      <pubDate>Tue, 09 Jun 2020 19:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655621#M24181</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-06-09T19:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a Word document (including a flowchart/image) into an Excel tab using SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655622#M24182</link>
      <description>&lt;P&gt;I have no clue why you think SAS should be involved with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I thought I needed such I would try copy and paste the whole Word doc into Excel. Reformat the column all the text will end up in.&lt;/P&gt;
&lt;P&gt;May need a separate copy/paste for the image to get in a desirable location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the document has any tables you might have lots of fun just getting the text read.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 19:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655622#M24182</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-09T19:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a Word document (including a flowchart/image) into an Excel tab using SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655624#M24183</link>
      <description>There's a variety of Microsoft solutions VBA/VBS/OLE that may enable this type of functionality. However, in my experience it doesn't show as nicely formatted so if appearance matters this doesn't work and you need to ensure it's formatted correctly first. If that's not an issue then you can find the VBA/VBS solution and then call it from SAS.</description>
      <pubDate>Tue, 09 Jun 2020 20:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Converting-a-Word-document-including-a-flowchart-image-into-an/m-p/655624#M24183</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-09T20:06:05Z</dc:date>
    </item>
  </channel>
</rss>

