<?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 Difference between PUTLOG and PUT statements in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674610#M965</link>
    <description>&lt;P&gt;Hi all - Being new to SAS, I have noticed that the PUTLOG and PUT statements seem to be syntactically similar and accomplish the same goals when trying to debug a program for logic errors. What is the main difference between these two statements? Should beginner programmers use one over the other? Thank you - Dan&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 22:56:37 GMT</pubDate>
    <dc:creator>danchild</dc:creator>
    <dc:date>2020-08-04T22:56:37Z</dc:date>
    <item>
      <title>Difference between PUTLOG and PUT statements</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674610#M965</link>
      <description>&lt;P&gt;Hi all - Being new to SAS, I have noticed that the PUTLOG and PUT statements seem to be syntactically similar and accomplish the same goals when trying to debug a program for logic errors. What is the main difference between these two statements? Should beginner programmers use one over the other? Thank you - Dan&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 22:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674610#M965</guid>
      <dc:creator>danchild</dc:creator>
      <dc:date>2020-08-04T22:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between PUTLOG and PUT statements</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674611#M966</link>
      <description>&lt;P&gt;In a data step you can write output to file or another output destination. The PUT will write to any of the open destinations but putlog only writes to the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A brief example program.&lt;/P&gt;
&lt;PRE&gt;data _null_;
   file print;
   put 'This will go to the default output destination';
   putlog 'This should only appear in the log';
run;&lt;/PRE&gt;
&lt;P&gt;Copy the above code into your SAS session and run it. You will likely not find "This will go the default output destination" in the log but it should be in the Results or Listing output window depending on how you are running your session. The Putlog statement will.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many years ago, and still do occasionally, use Put statements to write text to specific types of file formats such as text that needs to start in specific columns or lines on a logical page.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 23:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674611#M966</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-04T23:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between PUTLOG and PUT statements</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674855#M967</link>
      <description>Thank you very much!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Difference-between-PUTLOG-and-PUT-statements/m-p/674855#M967</guid>
      <dc:creator>danchild</dc:creator>
      <dc:date>2020-08-05T20:31:12Z</dc:date>
    </item>
  </channel>
</rss>

