<?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: Statement Picture Formatting giving extra 0 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689897#M79652</link>
    <description>&lt;P&gt;First, the multiplier is applied to the value; then, the&amp;nbsp;&lt;EM&gt;integer&lt;/EM&gt; value resulting from that calculation is placed into the picture:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture dollarydoos
  1000 - 9999 = '0009.9' (
    prefix= '$' 
    multiplier=1
  )
;
run;

data _null_;
x= 1234.555;
put x= dollarydoos.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Oct 2020 08:41:19 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-10-08T08:41:19Z</dc:date>
    <item>
      <title>Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689876#M79648</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to fix value shown by Statemnt PICTURE:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existing program is using below format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;picture dollarydoos&lt;BR /&gt;1000 - 9999 = '0999.9' (prefix= '$' multiplier = 0.1 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actual Value-1234&lt;/P&gt;&lt;P&gt;Shown as -012.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even when i am trying this&lt;/P&gt;&lt;P&gt;1000 - 9999 = '999.9' (prefix= '$' multiplier = 0.1 ) still result is same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i make 1234 shown as 123.4 or even 123. I would like to remove this extra 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 05:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689876#M79648</guid>
      <dc:creator>RDS2020</dc:creator>
      <dc:date>2020-10-08T05:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689881#M79649</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329634"&gt;@RDS2020&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to fix value shown by Statemnt PICTURE:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Existing program is using below format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt;picture dollarydoos&lt;BR /&gt;1000 - 9999 = '0999.9' (prefix= '$' multiplier = 0.1 )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual Value-1234&lt;/P&gt;
&lt;P&gt;Shown as -012.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;even when i am trying this&lt;/P&gt;
&lt;P&gt;1000 - 9999 = '999.9' (prefix= '$' multiplier = 0.1 ) still result is same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can i make 1234 shown as 123.4 or even 123. I would like to remove this extra 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do yo actually mean that your value is a negative 1234?&lt;/P&gt;
&lt;P&gt;I don't believe any of your "results" as none of them show a dollar sign.&lt;/P&gt;
&lt;P&gt;I am not sure what you mean by "remove this extra 0". I don't see any 0 in the result either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;proc format;
picture dollarydoos
100 - 9999 = '0009.9' (prefix= '$' 
                         multiplier=1
                         )
;


data _null_;
  x= 1234;
  put x= dollarydoos.;
run;&lt;/PRE&gt;
&lt;P&gt;After the multiple you used was applied the result 123.4 was outside of the range of 1000-9999 specified for the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show code for exactly how you are testing the result of the format. Include assigning the value and using it to display the value.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 06:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689881#M79649</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-08T06:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689882#M79650</link>
      <description>&lt;P&gt;A "9" in the picture&amp;nbsp;&lt;EM&gt;forces&lt;/EM&gt; the digit to be displayed; a "0" allows SAS to omit leading zeroes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0n990vq8gxca6n1vnsracr6jp2c.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PICTURE Statement&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689882#M79650</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-08T07:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689895#M79651</link>
      <description>Nope its not negative. it is converting 1234 value to 012.3instead of 123.4. 1234 is well in range of 1000-9999</description>
      <pubDate>Thu, 08 Oct 2020 08:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689895#M79651</guid>
      <dc:creator>RDS2020</dc:creator>
      <dc:date>2020-10-08T08:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689897#M79652</link>
      <description>&lt;P&gt;First, the multiplier is applied to the value; then, the&amp;nbsp;&lt;EM&gt;integer&lt;/EM&gt; value resulting from that calculation is placed into the picture:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture dollarydoos
  1000 - 9999 = '0009.9' (
    prefix= '$' 
    multiplier=1
  )
;
run;

data _null_;
x= 1234.555;
put x= dollarydoos.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2020 08:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689897#M79652</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-08T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689921#M79653</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329634"&gt;@RDS2020&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Nope its not negative. it is converting 1234 value to 012.3instead of 123.4. 1234 is well in range of 1000-9999&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you run my code example?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 10:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/689921#M79653</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-08T10:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/691709#M79676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes i tries it. It is giving&amp;nbsp;&lt;/P&gt;&lt;P&gt;x=$123.4&lt;/P&gt;&lt;P&gt;so since it is multiplied by 1 shudnt it show 1234.5 and shouldnt have changed the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formatting shouldnt change the actual value, isnt it so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RDS&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 00:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/691709#M79676</guid>
      <dc:creator>RDS2020</dc:creator>
      <dc:date>2020-10-15T00:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Statement Picture Formatting giving extra 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/691840#M79677</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329634"&gt;@RDS2020&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes i tries it. It is giving&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x=$123.4&lt;/P&gt;
&lt;P&gt;so since it is multiplied by 1 shudnt it show 1234.5 and shouldnt have changed the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Formatting shouldnt change the actual value, isnt it so?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;RDS&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So what exactly is your question? You started off claiming that you wanted, or expected, 123.4 as the output.&lt;/P&gt;
&lt;P&gt;Formatting does NOT change the value of any variable. Ever. However it will significantly change how the value may appear in output.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 14:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Statement-Picture-Formatting-giving-extra-0/m-p/691840#M79677</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-15T14:25:42Z</dc:date>
    </item>
  </channel>
</rss>

