<?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: Unable to store error message from log files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909817#M358829</link>
    <description>&lt;P&gt;You are probably better off submitting your question in the "SAS Studio" section of SAS Communities, but here are my two cents:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It looks like your user written step is not part of the flow. Should it not be in order to get executed?&lt;/LI&gt;
&lt;LI&gt;You may want to show the log file that PROC PRINTTO writes to, and the SQL server table that the user written code writes to, in the diagram. That way, it will be much clearer what the code does, and a lot easier to switch the output, e.g. if you are moving from TEST to PROD.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It's been a while since I have done any SAS Studio work, and I do not remember how to reference files and tables in user-written code (ask over at the SAS Studio section, I am sure it's not complicated).&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 10:17:52 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2023-12-28T10:17:52Z</dc:date>
    <item>
      <title>Unable to store error message from log files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909755#M358814</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;
&lt;P&gt;I am trying to show the error message from the log file through the SAS Data Integration.&lt;/P&gt;
&lt;P&gt;Please follow the steps and Screenshots for your reference.&lt;/P&gt;
&lt;P&gt;Step -1,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I created a job and then used the Extract and Table loader for the sample.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shakti_Sourav_0-1703679178663.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92087i18AC4A14A296D111/image-size/large?v=v2&amp;amp;px=999" role="button" title="Shakti_Sourav_0-1703679178663.png" alt="Shakti_Sourav_0-1703679178663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step 2,&lt;/P&gt;
&lt;P&gt;In extract transformation, Select the Precode and mentioned the log path.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shakti_Sourav_2-1703679420660.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92089iA2E995F710B5EEFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Shakti_Sourav_2-1703679420660.png" alt="Shakti_Sourav_2-1703679420660.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3,&lt;/P&gt;
&lt;P&gt;Store the value in the target table which is in MS Sql Server DB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 4,&lt;/P&gt;
&lt;P&gt;I have mentioned some code for the extract the error message in USER WRITTEN.&lt;/P&gt;
&lt;P&gt;Please find the txt file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is working fine but&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem is,&amp;nbsp; I have executed the whole job, Extract and Table Loader working fine but user written not updating. If I execute the user written separately then it's updating.&lt;/P&gt;
&lt;P&gt;Please suggest, what's the issue ? and How to resolve it?&lt;/P&gt;
&lt;P&gt;If any concerns, please revert back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shakti&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909755#M358814</guid>
      <dc:creator>Shakti_Sourav</dc:creator>
      <dc:date>2023-12-27T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to store error message from log files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909817#M358829</link>
      <description>&lt;P&gt;You are probably better off submitting your question in the "SAS Studio" section of SAS Communities, but here are my two cents:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It looks like your user written step is not part of the flow. Should it not be in order to get executed?&lt;/LI&gt;
&lt;LI&gt;You may want to show the log file that PROC PRINTTO writes to, and the SQL server table that the user written code writes to, in the diagram. That way, it will be much clearer what the code does, and a lot easier to switch the output, e.g. if you are moving from TEST to PROD.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It's been a while since I have done any SAS Studio work, and I do not remember how to reference files and tables in user-written code (ask over at the SAS Studio section, I am sure it's not complicated).&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 10:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909817#M358829</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2023-12-28T10:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to store error message from log files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909834#M358830</link>
      <description>&lt;P&gt;Sounds like a timing problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you could try:&lt;/P&gt;
&lt;P&gt;1. Repoint the SAS log back to original location either in the post code of the table loader or at the beginning of the user written code node&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log=log;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. And just to make the flow look "nicer": Connect table object CORE_M... as input to the user written transformation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 11:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-store-error-message-from-log-files/m-p/909834#M358830</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-28T11:57:02Z</dc:date>
    </item>
  </channel>
</rss>

