<?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: Implied decimal places w/leading zeros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149975#M262408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally, it appeared that you wanted every numeric to be expressed using 6 characters.&amp;nbsp; In that case, the easy way would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newvar = put(oldvar*100, z6.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need longer strings to represent bigger numbers, you'll have to describe how to express some of the larger numbers.&amp;nbsp; How would you express these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.12&lt;/P&gt;&lt;P&gt;12.12&lt;/P&gt;&lt;P&gt;123.12&lt;/P&gt;&lt;P&gt;1234.12&lt;/P&gt;&lt;P&gt;12345.12&lt;/P&gt;&lt;P&gt;123456.12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you only want 6 characters, the simple statement above should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 15:33:31 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2014-08-05T15:33:31Z</dc:date>
    <item>
      <title>Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149971#M262404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been struggling with this one for a couple days now so I am forced to ask for help (which I usually try not to do without attempting many things myself). I have an excel file containing numeric variables 24 columns across and 365 rows down. The column headers are yvar1, yvar2, yvar3......yvar24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yvar1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yvar2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yvar3........&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yvar24&lt;/P&gt;&lt;P&gt;9999.99&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 999.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 888.12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7777.34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So import into SAS. I need to keep 2 implied decimal places and then have every column be the same length. For example I need yvar1 to be 999999 instead of 9999.99 and yvar2 would need to padded with a leading zero to show 099900. Yvar3 would be 088812 and yvar24 would be 777734.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the compress function to remove the decimal point and add the implied decimal places using the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data compression;&lt;/P&gt;&lt;P&gt;set work.usage;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char1=compress(put(yvar1,10.2),'.');&lt;/P&gt;&lt;P&gt;char2=compress(put(yvar1,10.2),'.');&lt;/P&gt;&lt;P&gt;char3=compress(put(yvar1,10.2),'.');&lt;/P&gt;&lt;P&gt;char4=compress(put(yvar1,10.2),'.');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works well for keeping the 2 implied decimal places and removing the decimal point. However, I cannot get the variables to pad with leading zeros where necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the $z format to do it to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data helpme;&lt;/P&gt;&lt;P&gt;set compression;&lt;/P&gt;&lt;P&gt;newchar = put (input(char1,10.2),$z8.)&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That code somehow removes my implied decimal points. What the heck am I doing wrong? THANK YOU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149971#M262404</guid>
      <dc:creator>DubsNU</dc:creator>
      <dc:date>2014-08-05T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149972#M262405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zx. format is a numeric format.&amp;nbsp; So if you have a number 999.99 and you want a zero in front then apply Z as:&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=999.99;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format a z7.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also want to put to character:&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=999.99;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b=put(a,z7.2);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149972#M262405</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-05T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149973#M262406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that doesn't seem to work. Using your code to put it as character for yvar1=974620.49 I get the result of 0974620. It drops my implied decimal places that way. I need it to show 097462049. Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data zeros;&lt;/P&gt;&lt;P&gt;set importedexcelfile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newchar = put(yvar1,z7.2);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149973#M262406</guid>
      <dc:creator>DubsNU</dc:creator>
      <dc:date>2014-08-05T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149974#M262407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So for that example (and I don't have SAS open now as leaving):&lt;/P&gt;&lt;P&gt;974620.49&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=974620.49;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b=input(compress(put(a,best.),".",""),z9.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149974#M262407</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-05T15:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149975#M262408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally, it appeared that you wanted every numeric to be expressed using 6 characters.&amp;nbsp; In that case, the easy way would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newvar = put(oldvar*100, z6.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need longer strings to represent bigger numbers, you'll have to describe how to express some of the larger numbers.&amp;nbsp; How would you express these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.12&lt;/P&gt;&lt;P&gt;12.12&lt;/P&gt;&lt;P&gt;123.12&lt;/P&gt;&lt;P&gt;1234.12&lt;/P&gt;&lt;P&gt;12345.12&lt;/P&gt;&lt;P&gt;123456.12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you only want 6 characters, the simple statement above should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149975#M262408</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-08-05T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149976#M262409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2f2f2f; font-family: Tms Rmn;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;data want;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;a=974620.49;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;b=input(compress(put(a,best.),".",""),z9.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;gives me the error the informat Z was not found or could not be loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 17:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149976#M262409</guid>
      <dc:creator>DubsNU</dc:creator>
      <dc:date>2014-08-05T17:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149977#M262410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you need?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data want;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format b z9.;&lt;BR /&gt;a=974620.49;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b=input(compress(put(a,best.),".",""),9.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=want;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/********************************************/&lt;/P&gt;&lt;P&gt;I went back and played with different best lengths. g is a rounded amount.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data want;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format b d e f g z9.;&lt;BR /&gt;a=974620.49;&lt;BR /&gt; &lt;BR /&gt;b=input(compress(put(a,best.),".",""),9.);&lt;BR /&gt;d=input(compress(put(a,best10.),".",""),9.);&lt;BR /&gt;e=input(compress(put(a,best9.),".",""),9.);&lt;BR /&gt;f=input(compress(put(a,best11.),".",""),9.);&lt;BR /&gt;g=input(compress(put(a,best8.),".",""),9.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=want;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/***&lt;/P&gt;&lt;P&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000974620&amp;nbsp;&amp;nbsp;&amp;nbsp; 097462049&amp;nbsp;&amp;nbsp;&amp;nbsp; 097462049&amp;nbsp;&amp;nbsp;&amp;nbsp; 009746204&amp;nbsp;&amp;nbsp;&amp;nbsp; 009746205&amp;nbsp;&amp;nbsp;&amp;nbsp; 974620.49&lt;/P&gt;&lt;P&gt;***/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: James Willis&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 17:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149977#M262410</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-08-05T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149978#M262411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To eliminate the decimal place just multiple by 100 and take the INT() part.&lt;/P&gt;&lt;P&gt;To get it to display these numbers with leading zeros attach the appropriate Z format.&lt;/P&gt;&lt;P&gt;You could have it dynamically calculate the length needed to show the largest value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; have ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; yvar1-yvar4 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;9999.99 999.00 888.12 7777.34&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; have end=eof;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; x yvar1-yvar4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;over&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=int(x*&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxlen=max(maxlen,length(cats(x)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; eof &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'maxlen'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,maxlen);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;retain&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; maxlen &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; maxlen;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; yvar1-yvar4 Z&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;maxlen.&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 21:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149978#M262411</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-08-05T21:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Implied decimal places w/leading zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149979#M262412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First off....Thanks to everyone who replied. I appreciate the help and I learn when I read suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom, this is perfect. Does exactly what I need it to. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implied-decimal-places-w-leading-zeros/m-p/149979#M262412</guid>
      <dc:creator>DubsNU</dc:creator>
      <dc:date>2014-08-06T13:14:05Z</dc:date>
    </item>
  </channel>
</rss>

