<?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: How to get the data from Word to SAS dataset by converting Headings in the word as variables of in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375660#M90096</link>
    <description>&lt;P&gt;Since nothing in the Word document provides any clues about column attributes, you can't set them automatically. So you have to do a lot of work anyway. The names are the least problem.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 12:23:42 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-13T12:23:42Z</dc:date>
    <item>
      <title>How to get the data from Word to SAS dataset by converting Headings in the word as variables of SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375629#M90077</link>
      <description>&lt;P&gt;Hi Mates,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help from you guys. I want to get the text of word document into SAS datasets by&amp;nbsp;converting the headings in the documents as variables for the SAS datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example of the Word document:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sex:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Male&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Age:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;25 years&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Address:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#2-3-4-5, 2nd cross,&lt;/P&gt;&lt;P&gt;1st Main, NY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output I need:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;obs Name&amp;nbsp;&amp;nbsp; Sex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01&amp;nbsp;&amp;nbsp; Jhon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Male&amp;nbsp; 25 Years&amp;nbsp;&amp;nbsp;&amp;nbsp; #2-3-4-5, 2nd cross,&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1st Main, NY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me to find a solution for this?????&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375629#M90077</guid>
      <dc:creator>satish78652</dc:creator>
      <dc:date>2017-07-13T11:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data from Word to SAS dataset by converting Headings in the word as variables of</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375635#M90079</link>
      <description>&lt;P&gt;From Word, File-&amp;gt;Save As-&amp;gt; save the file as .txt. &amp;nbsp;Then write a datastep to read the text file and output to your given requirements:&lt;/P&gt;
&lt;PRE&gt;data want;
  length buff name sex address $2000;
  infile "thetextfile.txt";
  input buff $;
  if buff="Name:" then input name $;
...
run;&lt;/PRE&gt;
&lt;P&gt;The real question is why are you using an output for human review file format such as Word as data. &amp;nbsp;Return to the source data and go from there, thats really the only "good" way.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375635#M90079</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-13T11:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data from Word to SAS dataset by converting Headings in the word as variables of</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375656#M90092</link>
      <description>&lt;P&gt;Thank you for the reply. In the programme you provided i need to specify the variables manually, my actual problem is that i am looking for macro which can extract the headings or bookmarks&amp;nbsp;as variables of SAS dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375656#M90092</guid>
      <dc:creator>satish78652</dc:creator>
      <dc:date>2017-07-13T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data from Word to SAS dataset by converting Headings in the word as variables of</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375660#M90096</link>
      <description>&lt;P&gt;Since nothing in the Word document provides any clues about column attributes, you can't set them automatically. So you have to do a lot of work anyway. The names are the least problem.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375660#M90096</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-13T12:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the data from Word to SAS dataset by converting Headings in the word as variables of</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375661#M90097</link>
      <description>&lt;P&gt;Well I sincerely hope you find what you are looking for. Please tell me if you find it.&lt;/P&gt;&lt;P&gt;Not later than yesterday I had to do the same thing.&lt;/P&gt;&lt;P&gt;I copied the Word data to an appropriate text editor, converted the special characters to adequate ones, ensured the proper tab delimitation and missing replacement and imported it as a formatted text file and performed an extensive quality check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how but hey I think what you want is doable. A *.docx file is nothing else than a zipped XML file. I think it's feasible to hack yourself into it and extract the formatted tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish you big success, here&amp;nbsp;are some&amp;nbsp;starting points: &lt;A href="https://stackoverflow.com/questions/13105142/read-word-document-doc-content-with-tables-etc" target="_self"&gt;1&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://esamsalah.blogspot.de/2008/04/batch-processing-word-documents-using.html" target="_blank"&gt;2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-data-from-Word-to-SAS-dataset-by-converting/m-p/375661#M90097</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2017-07-13T12:29:29Z</dc:date>
    </item>
  </channel>
</rss>

