<?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 Video: How to add leading zeros to a SAS value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Video-How-to-add-leading-zeros-to-a-SAS-value/m-p/579461#M164485</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A common question asked here is how to add leading zeros to a SAS value. SAS'&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/152214" target="_blank" rel="noopener"&gt;Peter Styliadis,&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;explains the process in this tutorial.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDU5y_HA5mKc%3Flist%3DPLVV6eZFA22QwrXd6nSDU18E6XgXSMOs87&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDU5y_HA5mKc&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDU5y_HA5mKc%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="600" height="337" scrolling="no" title="SAS Tutorial | How to add leading zeroes in SAS" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2019 18:10:25 GMT</pubDate>
    <dc:creator>AnnaBrown</dc:creator>
    <dc:date>2019-08-06T18:10:25Z</dc:date>
    <item>
      <title>Video: How to add leading zeros to a SAS value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Video-How-to-add-leading-zeros-to-a-SAS-value/m-p/579461#M164485</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A common question asked here is how to add leading zeros to a SAS value. SAS'&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/152214" target="_blank" rel="noopener"&gt;Peter Styliadis,&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;explains the process in this tutorial.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDU5y_HA5mKc%3Flist%3DPLVV6eZFA22QwrXd6nSDU18E6XgXSMOs87&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDU5y_HA5mKc&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDU5y_HA5mKc%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="600" height="337" scrolling="no" title="SAS Tutorial | How to add leading zeroes in SAS" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 18:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Video-How-to-add-leading-zeros-to-a-SAS-value/m-p/579461#M164485</guid>
      <dc:creator>AnnaBrown</dc:creator>
      <dc:date>2019-08-06T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Video: How to add leading zeros to a SAS value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Video-How-to-add-leading-zeros-to-a-SAS-value/m-p/579540#M164509</link>
      <description>&lt;P&gt;Want to add on something really stupid? This is from the days before &lt;EM&gt;%sysfunc&lt;/EM&gt;, &lt;EM&gt;putn&lt;/EM&gt; and the &lt;EM&gt;z&lt;/EM&gt; format...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let j = %substr(000&amp;amp;j, %length(&amp;amp;j), 4);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For values of j up to 9999, right-justify and zero-fill j. Want longer numbers? Add zeros, and change the last parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used this construct for years, but the documentation was &lt;EM&gt;usually&lt;/EM&gt; fairly thorough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 02:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Video-How-to-add-leading-zeros-to-a-SAS-value/m-p/579540#M164509</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2019-08-07T02:12:27Z</dc:date>
    </item>
  </channel>
</rss>

