<?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: Additional sas code with macro won't run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684781#M207579</link>
    <description>&lt;P&gt;You need to do the "insert custom code" for tasks also.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 19:55:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-09-17T19:55:10Z</dc:date>
    <item>
      <title>Additional sas code with macro won't run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684766#M207568</link>
      <description>&lt;P&gt;I have this code which i want to run after each query is processed. When i run it manualy it works, but when i use option tools&amp;gt;options&amp;gt;sas programs&amp;gt; insert custom code after submitted code it doesn't insert that row affter i run query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;

 

%let date_modified=%sysfunc(datetime(),datetime16.);

%put &amp;amp;date_modified;

insert into REP.tables(TABLE_NAME, DATETIME_MODIFIED, MODIFIED_BY_USER,PROJECT_PATH,PROJECT_NAME,PROCES_FLOW,QUERY_NAME)

values("&amp;amp;syslast","&amp;amp;date_modified"dt,"&amp;amp;_CLIENTUSERNAME","&amp;amp;_CLIENTPROJECTPATH","&amp;amp;_CLIENTPROJECTNAME","&amp;amp;_CLIENTPROCESSFLOWNAME","&amp;amp;_CLIENTTASKLABEL");

quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684766#M207568</guid>
      <dc:creator>sasuser381</dc:creator>
      <dc:date>2020-09-17T19:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Additional sas code with macro won't run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684770#M207571</link>
      <description>&lt;P&gt;Please post your code in a code box ("little running man" button).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684770#M207571</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-17T19:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Additional sas code with macro won't run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684772#M207573</link>
      <description>&lt;P&gt;You will make it easier to post code and especially logs by copying the TEXT and pasting into a code box on the forum opened with the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;We can't edit pictures.&lt;/P&gt;
&lt;P&gt;We can't copy text from a picture to show needed changes.&lt;/P&gt;
&lt;P&gt;And the default image is so blinking small it is extremely hard to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your LOG show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684772#M207573</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-17T19:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Additional sas code with macro won't run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684779#M207577</link>
      <description>&lt;P&gt;I inspected the log as you said. It seems like it only executes this when you run a query in a program, not in a Query bulder. When i run query builder it doesn't show up in log at all, but when i run any program it does.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684779#M207577</guid>
      <dc:creator>sasuser381</dc:creator>
      <dc:date>2020-09-17T19:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Additional sas code with macro won't run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684781#M207579</link>
      <description>&lt;P&gt;You need to do the "insert custom code" for tasks also.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684781#M207579</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-17T19:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Additional sas code with macro won't run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684783#M207581</link>
      <description>I found the solution. I needed to go in options for query in tools&amp;gt;options&amp;gt;tasks and to set this code tu run after each query. Because the option i used was only for programs. Thank you guys.</description>
      <pubDate>Thu, 17 Sep 2020 20:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-sas-code-with-macro-won-t-run/m-p/684783#M207581</guid>
      <dc:creator>sasuser381</dc:creator>
      <dc:date>2020-09-17T20:00:59Z</dc:date>
    </item>
  </channel>
</rss>

