<?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: SAS 9.4 Extract long texts from SAS Metadata TextStore in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/326779#M72840</link>
    <description>&lt;P&gt;Thanks to LinusH !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stupid I did'nt&amp;nbsp;think&amp;nbsp;of that myself. Of course the texts can be extracted from Metadata tables, and for my purpose a libname to the most recent backup is sufficient. I ran into a problem with transcoding danish national characters from Unicode, but that can be solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 16:56:08 GMT</pubDate>
    <dc:creator>ErikLund_Jensen</dc:creator>
    <dc:date>2017-01-23T16:56:08Z</dc:date>
    <item>
      <title>SAS 9.4 Extract long texts from SAS Metadata TextStore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/325785#M72498</link>
      <description>&lt;P&gt;Hi&amp;nbsp;everybody&lt;/P&gt;
&lt;P&gt;We run a traditional data warehouse with several thousand jobs built in DI Studio and a lot of stored processes. There is a lot of user written code stored in SAS metadata, and we&amp;nbsp;want to extract the SAS source code from&amp;nbsp;SAS metadata TextStore and store it in disk files, which makes it much easier to scan for used macros, file names etc. There are about 2000 entries containing user written code from DI Studio transformations, pre- and post-process code and code used in Stored processes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use an automated process flow that extracts metadata to XML, reads the xml file into a SAS data sets using a XML MAP and - in a flllowing data step - formats the StoredText content to SAS programs and writes each entry to a disk file with the TextStore ID as file name.&amp;nbsp;&amp;nbsp;The link between files and jobs/transformations are maintained in tables, which are written along with the extraction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works very well. But some&amp;nbsp;entries are longer than 32k, and they are truncated when read into the SAS data set. There seems to be no workaround like&amp;nbsp;using the XML map to split the long texts in several records, so I have not figured out how to get content beyond the 32k limit out in disk files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope someone has a good idea to solve this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/325785#M72498</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2017-01-18T19:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Extract long texts from SAS Metadata TextStore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/325828#M72502</link>
      <description>&lt;P&gt;Sadly I can't offer help, but SAS should seriously work on lifting the limits for character variable length and &lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/Metadata-amp-colon-More-space-please/idi-p/220310" target="_self"&gt;metadata &lt;/A&gt;length.&lt;/P&gt;
&lt;P&gt;The increase from 200 to 32k is 20 years old.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/325828#M72502</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-01-18T22:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Extract long texts from SAS Metadata TextStore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/325889#M72529</link>
      <description>Step one: fire the ETL designer/development lead for allowing that amount of user written code. As you experience now, it's a damage that is costly to repair. &lt;BR /&gt;&lt;BR /&gt;For the XML, since the XML mapper nor Base SAS handles this, you probably need to use a 3rd party tool to do this for you.&lt;BR /&gt;&lt;BR /&gt;I haven't dug i to Metadata behind the scenes that much, but it's stored in Base SAS tables, so I guess that the original store would be splittede into multiple rows...or. ..?</description>
      <pubDate>Thu, 19 Jan 2017 06:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/325889#M72529</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-19T06:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Extract long texts from SAS Metadata TextStore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/326779#M72840</link>
      <description>&lt;P&gt;Thanks to LinusH !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stupid I did'nt&amp;nbsp;think&amp;nbsp;of that myself. Of course the texts can be extracted from Metadata tables, and for my purpose a libname to the most recent backup is sufficient. I ran into a problem with transcoding danish national characters from Unicode, but that can be solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Extract-long-texts-from-SAS-Metadata-TextStore/m-p/326779#M72840</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2017-01-23T16:56:08Z</dc:date>
    </item>
  </channel>
</rss>

