<?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: Put statements to the log dynamically within datastep in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332144#M74737</link>
    <description>&lt;P&gt;Even with logparm="write=immediate", the putlog entries will only appear after the data step has finished (SAS 9.2, EG 7.11).&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 12:47:09 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-13T12:47:09Z</dc:date>
    <item>
      <title>Put statements to the log dynamically within datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332135#M74734</link>
      <description>&lt;P&gt;I'm running a long loop and I want to update the log every now and again so I can keep track of it's progress however Enterprise guide 5.1 running on a Linux server will only output once the datastep has completed, is there an option to force my put statements to output to the log when they happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data _null_;
	do i = 1 to 10;
		do y = 1 to 100000000;
		end;
		put i;
	end;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 11:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332135#M74734</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2017-02-13T11:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Put statements to the log dynamically within datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332137#M74735</link>
      <description>putlog i ;</description>
      <pubDate>Mon, 13 Feb 2017 12:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332137#M74735</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-13T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Put statements to the log dynamically within datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332144#M74737</link>
      <description>&lt;P&gt;Even with logparm="write=immediate", the putlog entries will only appear after the data step has finished (SAS 9.2, EG 7.11).&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 12:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332144#M74737</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-13T12:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Put statements to the log dynamically within datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332159#M74741</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at this blog entry &lt;A href="http://blogs.sas.com/content/sasdummy/2013/01/30/tracking-progress-with-dosubl/" target="_self"&gt;Tracking progress in your program with SAS Enterprise Guide: another trick&lt;/A&gt; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shows how to use the DOSUBL functtion together with the SYSECHO statement. Together they will do what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332159#M74741</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-02-13T13:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Put statements to the log dynamically within datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332163#M74742</link>
      <description>&lt;P&gt;I like it, this line does what I want;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with a set statement;&lt;BR /&gt;rc = dosubl(cats('SYSECHO "OBS N=',_n_,'";'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in a loop;&lt;/P&gt;&lt;P&gt;rc = dosubl(cats('SYSECHO "OBS N=',i,'";'));&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-statements-to-the-log-dynamically-within-datastep/m-p/332163#M74742</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2017-02-13T13:33:53Z</dc:date>
    </item>
  </channel>
</rss>

