<?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 Function: Odd syntax -1 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Put-Function-Odd-syntax-1/m-p/472437#M121144</link>
    <description>&lt;P&gt;It is not a minus 1 (one). It is -L, which left aligns the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read about it in the &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000199354.htm" target="_self"&gt;PUT Function Documentation&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 11:04:01 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-06-22T11:04:01Z</dc:date>
    <item>
      <title>Put Function: Odd syntax -1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-Function-Odd-syntax-1/m-p/472436#M121143</link>
      <description>&lt;P&gt;SAS 9.2&lt;/P&gt;&lt;P&gt;Been looking through some old code and came across this syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;x=put(today(), &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;date9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; -l);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; x;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Put function has an odd -1 in it. As far as I can tell it does nothing. But there is nothing in the help about this. In my mind it should syntax error but it doesn't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to convert to EG (SAS 9.4) and use the prompt manager and default macro variable values which result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is it and is I leave it out what's the result?&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 10:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-Function-Odd-syntax-1/m-p/472436#M121143</guid>
      <dc:creator>_JonT</dc:creator>
      <dc:date>2018-06-22T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Put Function: Odd syntax -1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-Function-Odd-syntax-1/m-p/472437#M121144</link>
      <description>&lt;P&gt;It is not a minus 1 (one). It is -L, which left aligns the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read about it in the &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000199354.htm" target="_self"&gt;PUT Function Documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 11:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-Function-Odd-syntax-1/m-p/472437#M121144</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-06-22T11:04:01Z</dc:date>
    </item>
  </channel>
</rss>

