<?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 do I - redirect saslog to a database clob object? in SAS Community Nordic</title>
    <link>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857072#M418</link>
    <description>&lt;P&gt;It looks like on Viya you can use FILENAME to point to a Azure Blob Storage, so that might make it possible to create the fileref then just use PROC PRINTTO:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_035/lestmtsglobal/p1arsjiowdszd8n1qk8mqg5p2uhv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_035/lestmtsglobal/p1arsjiowdszd8n1qk8mqg5p2uhv.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But unless there is something similar for Oracle (I doubt it), agree with suggestion to separate the process of writing the log from whatever process can upload it to the blob&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course even if you use a non-SAS process to upload to the blob, you should still be able to call it from your SAS job (assuming XCMD is enabled), so that it is fully automated.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 15:54:42 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-02-03T15:54:42Z</dc:date>
    <item>
      <title>How do I - redirect saslog to a database clob object?</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857048#M416</link>
      <description>&lt;P&gt;Hi wise people&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to redirect a saslog to a clob (or similar) object in a database - in my case Oracle?&lt;/P&gt;
&lt;P&gt;How?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose it is not possible directly, but maybe via some proc printto + proc document + ???&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would very much like to have the suggested solution to work in a batch environment on Linux using SAS9.4M7.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857048#M416</guid>
      <dc:creator>jmic_nyk</dc:creator>
      <dc:date>2023-02-03T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I - redirect saslog to a database clob object?</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857064#M417</link>
      <description>&lt;P&gt;Run the SAS program first. It will produce a log file like it always does.&lt;/P&gt;
&lt;P&gt;Then use whatever command your database uses to allow you to copy an actual file into a object in the database.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857064#M417</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-02-03T15:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I - redirect saslog to a database clob object?</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857072#M418</link>
      <description>&lt;P&gt;It looks like on Viya you can use FILENAME to point to a Azure Blob Storage, so that might make it possible to create the fileref then just use PROC PRINTTO:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_035/lestmtsglobal/p1arsjiowdszd8n1qk8mqg5p2uhv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_035/lestmtsglobal/p1arsjiowdszd8n1qk8mqg5p2uhv.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But unless there is something similar for Oracle (I doubt it), agree with suggestion to separate the process of writing the log from whatever process can upload it to the blob&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course even if you use a non-SAS process to upload to the blob, you should still be able to call it from your SAS job (assuming XCMD is enabled), so that it is fully automated.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/How-do-I-redirect-saslog-to-a-database-clob-object/m-p/857072#M418</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-02-03T15:54:42Z</dc:date>
    </item>
  </channel>
</rss>

