<?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: Zw.d example in documentation doesn't work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634461#M188303</link>
    <description>&lt;P&gt;You only use the format in the PUT statement, so it only has effect on the output in the SAS &lt;EM&gt;log&lt;/EM&gt;. To make it have an effect on the column as stored in the dataset (and visible in the OUTPUT DATA tab), you need to use a FORMAT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
num=1350;
format num z8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 15:38:11 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-03-24T15:38:11Z</dc:date>
    <item>
      <title>Zw.d example in documentation doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634457#M188302</link>
      <description>&lt;P&gt;The code example in SAS support documentation&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=leforinforref&amp;amp;docsetTarget=p09lpr3kmbh8fen1qepuv6zc1ldd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Zw.d SAS Documentation&lt;/A&gt;&amp;nbsp;doesn't seem to do what they say it should do.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data one;

num=1350;

put num z8.; run;&lt;/PRE&gt;&lt;P&gt;When I run this, I get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zwd.jpg" style="width: 277px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37295iD801C657BA4EE545/image-dimensions/277x122?v=v2" width="277" height="122" role="button" title="zwd.jpg" alt="zwd.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Documentation says I should see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zwd1.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37296i8A8AAB2065C5E0D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zwd1.jpg" alt="zwd1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I don't get the leading zeros.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advice would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 15:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634457#M188302</guid>
      <dc:creator>DavidBrown</dc:creator>
      <dc:date>2020-03-24T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Zw.d example in documentation doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634461#M188303</link>
      <description>&lt;P&gt;You only use the format in the PUT statement, so it only has effect on the output in the SAS &lt;EM&gt;log&lt;/EM&gt;. To make it have an effect on the column as stored in the dataset (and visible in the OUTPUT DATA tab), you need to use a FORMAT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
num=1350;
format num z8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 15:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634461#M188303</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-24T15:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Zw.d example in documentation doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634462#M188304</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;Thanks so much. I wish they would explain that in the documentation. Coming from R, Python, and SQL, I find SAS documentation leaves much to be desired. But, thanks again, and I appreciate the reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 15:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634462#M188304</guid>
      <dc:creator>DavidBrown</dc:creator>
      <dc:date>2020-03-24T15:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Zw.d example in documentation doesn't work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634465#M188306</link>
      <description>&lt;P&gt;Why do you find that SAS documentation leaves much to be desired?&lt;/P&gt;
&lt;P&gt;From the documentation of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1spe7nmkmi7ywn175002rof97fv.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PUT Statement&lt;/A&gt;:&lt;/P&gt;
&lt;H1 id="n1spe7nmkmi7ywn175002rof97fv" class="xisDoc-title"&gt;PUT Statement&lt;/H1&gt;
&lt;P class="xisDoc-shortDescription"&gt;&lt;STRONG&gt;Writes lines to the SAS log&lt;/STRONG&gt;, to the SAS output window, or to an external location that is specified in the most recent FILE statement.&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;(Emphasis by me)&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;What I do mean: because of the sheer mass of all things SAS, the documentation is awe-inspring because of its sheer size. It takes some time to get a feel for where to look. Whenever you are puzzled by the behaviour of a piece of code, look up the documentation for &lt;EM&gt;all&lt;/EM&gt; elements used, and also do not forget that there might be other things having an influence that are not part of the code, like the setting of system options or the current state of the ODS.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 15:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zw-d-example-in-documentation-doesn-t-work/m-p/634465#M188306</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-24T15:56:23Z</dc:date>
    </item>
  </channel>
</rss>

