<?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: How to Add Leading Zero's Infront of Numbers ??? Without Z Format... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627756#M185381</link>
    <description>&lt;P&gt;Sorry Its not look like as want my output..Zeros are come between the 1's..but in our output zero's come infront of 1 only..&lt;/P&gt;&lt;P&gt;please have a look on your programme and do some changes..and send it fastly to me..&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 04:55:02 GMT</pubDate>
    <dc:creator>Mohan_Reddy</dc:creator>
    <dc:date>2020-02-27T04:55:02Z</dc:date>
    <item>
      <title>How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627749#M185375</link>
      <description>&lt;P&gt;I Have Dataset Like below..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ds;&lt;BR /&gt;infile datalines;&lt;BR /&gt;length number $10.;&lt;BR /&gt;input number$;&lt;BR /&gt;datalines;&lt;BR /&gt;1&lt;BR /&gt;1 1&lt;BR /&gt;1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1 1&lt;BR /&gt;1 1 1 1 1 1&lt;BR /&gt;1 1 1 1 1 1 1&lt;BR /&gt;1 1 1 1 1 1 1 1&lt;BR /&gt;1 1 1 1 1 1 1 1 1&lt;BR /&gt;1 1 1 1 1 1 1 1 1 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through this dataset i want output like below..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0000000001&lt;/P&gt;&lt;P&gt;0000000011&lt;/P&gt;&lt;P&gt;0000000111&lt;/P&gt;&lt;P&gt;0000001111&lt;/P&gt;&lt;P&gt;0000011111&lt;/P&gt;&lt;P&gt;0000111111&lt;/P&gt;&lt;P&gt;0001111111&lt;/P&gt;&lt;P&gt;0011111111&lt;/P&gt;&lt;P&gt;0111111111&lt;/P&gt;&lt;P&gt;1111111111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please anyone help to solve this question..write a programme for this...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 04:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627749#M185375</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-27T04:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627751#M185377</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ds;
  infile datalines;
  input number $40.;
  length temp $ 10;
  temp=compress(number,' ');
want=translate(right(temp),'0',' ');

  datalines;
1
1 1
1 1 1
1 1 1 1
1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
;

proc print;run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 12:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627751#M185377</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-02-27T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627752#M185378</link>
      <description>&lt;P&gt;Great that you've posted sample data in the form of a SAS datastep. Even better would be if you also test the datastep to ensure it fully works and we don't have to fix it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe below returns what you've been asking for.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ds;
  infile datalines;
  length number $20.;
  input number $20.;
  length number2 8;
  format number2 z10.;
  number2=input(compress(number),best32.);
  datalines;
1
1 1
1 1 1
1 1 1 1
1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
;

proc print data=ds;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 04:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627752#M185378</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-27T04:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627754#M185380</link>
      <description>&lt;P&gt;If You dont mind please write a full programme for that !!!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 04:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627754#M185380</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-27T04:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627756#M185381</link>
      <description>&lt;P&gt;Sorry Its not look like as want my output..Zeros are come between the 1's..but in our output zero's come infront of 1 only..&lt;/P&gt;&lt;P&gt;please have a look on your programme and do some changes..and send it fastly to me..&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 04:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627756#M185381</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-27T04:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627757#M185382</link>
      <description>&lt;P&gt;Any Another programme for this question ?? If you have another type programme please send it to me now...!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 04:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627757#M185382</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-27T04:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add Leading Zero's Infront of Numbers ??? Without Z Format...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627870#M185437</link>
      <description>&lt;P&gt;Opps. code has been modified.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 12:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Add-Leading-Zero-s-Infront-of-Numbers-Without-Z-Format/m-p/627870#M185437</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-02-27T12:17:03Z</dc:date>
    </item>
  </channel>
</rss>

