<?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 Cast from Blob to text in Viya in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647287#M193700</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an SQL server that has documents (Word, Excel etc) that are saved as blobs. I now want to convert the data as text (to be used in Visual Text Analytics). I have tried a couple of version but nothing works. Any ideas on how to do this? At the moment I'm using SAS Studio to do this.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Henrik&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 02:01:25 GMT</pubDate>
    <dc:creator>heffo</dc:creator>
    <dc:date>2020-05-13T02:01:25Z</dc:date>
    <item>
      <title>Cast from Blob to text in Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647287#M193700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an SQL server that has documents (Word, Excel etc) that are saved as blobs. I now want to convert the data as text (to be used in Visual Text Analytics). I have tried a couple of version but nothing works. Any ideas on how to do this? At the moment I'm using SAS Studio to do this.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Henrik&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 02:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647287#M193700</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2020-05-13T02:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cast from Blob to text in Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647294#M193702</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt;&lt;EM&gt; I now want to convert the data as text&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So you want to extract text from MS office files currently stored as blobs?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 02:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647294#M193702</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-13T02:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cast from Blob to text in Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647295#M193703</link>
      <description>That is correct. Get the text from the word documents (and possibly email messages) to be used as text for Text Analytics.</description>
      <pubDate>Wed, 13 May 2020 03:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647295#M193703</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2020-05-13T03:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cast from Blob to text in Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647297#M193704</link>
      <description>&lt;P&gt;There may be better ways, but now that DDE has been killed by MS, I would probably:&lt;/P&gt;
&lt;P&gt;1. Extract the MS SQL data and save it as a binary file. If the files are larger then 32k, you'll need to use explicit SQL pass-through so the data is passed in 32k chunks.&lt;/P&gt;
&lt;P&gt;2. Run a vbs script to dump the contents into a txt file.&lt;/P&gt;
&lt;P&gt;3. Read that txt file into SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 03:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647297#M193704</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-13T03:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cast from Blob to text in Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647298#M193705</link>
      <description>&lt;P&gt;You'll need to do that in SQL Server as part of an SQL passthru query. Googling SQL Server blob to string found this example:&amp;nbsp;&lt;A href="https://dba.stackexchange.com/questions/240441/sql-server-convert-blob-data-to-string" target="_blank"&gt;https://dba.stackexchange.com/questions/240441/sql-server-convert-blob-data-to-string&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;amongst many others.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 03:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cast-from-Blob-to-text-in-Viya/m-p/647298#M193705</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-05-13T03:29:27Z</dc:date>
    </item>
  </channel>
</rss>

