<?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: Pvalue6.4 to character conversion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/280997#M56895</link>
    <description>&lt;P&gt;Well, if your numeric value is smaller than 0.0001, then you obviously need to give your format more digits to the right of the decimal point.&lt;/P&gt;
&lt;P&gt;Try 10.8, for example:&lt;/P&gt;
&lt;PRE&gt;24         data _null_;
25         x = 0.0000954;
26         x1 = put(x,10.8);
27         put x1=;
28         run;

x1=0.00009540
&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Jun 2016 08:02:41 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-06-29T08:02:41Z</dc:date>
    <item>
      <title>Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/280994#M56894</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable called var4N, which is&amp;nbsp; numeric type&amp;nbsp;and has&amp;nbsp;format pvalue6.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IN my case, var4N has the value &amp;lt;.0001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert this to characer variaalbe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;var4=put(var4N, &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;f6.4&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I am getting 0.0001, instead of &amp;lt;.0001.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Please help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 07:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/280994#M56894</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2016-06-29T07:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/280997#M56895</link>
      <description>&lt;P&gt;Well, if your numeric value is smaller than 0.0001, then you obviously need to give your format more digits to the right of the decimal point.&lt;/P&gt;
&lt;P&gt;Try 10.8, for example:&lt;/P&gt;
&lt;PRE&gt;24         data _null_;
25         x = 0.0000954;
26         x1 = put(x,10.8);
27         put x1=;
28         run;

x1=0.00009540
&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jun 2016 08:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/280997#M56895</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-29T08:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281054#M56919</link>
      <description>&lt;P&gt;Use pvalue6.4 in your PUT statement if you want to character variable to match what appears in the numeric variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 12:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281054#M56919</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-29T12:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281073#M56924</link>
      <description>&lt;P&gt;I am looking specifically for value &amp;lt;.0001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should get converted to &amp;lt;.001 rather than showing .0001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Archana&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 12:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281073#M56924</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2016-06-29T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281074#M56925</link>
      <description>&lt;P&gt;I see. Did you try the PValue format?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 12:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281074#M56925</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-29T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281094#M56932</link>
      <description>&lt;P&gt;The pvalue format does work, see:&lt;/P&gt;
&lt;PRE&gt;24         data _null_;
25         x1 = .00001;
26         x2 = put(x1,pvalue6.4);
27         put x2=;
28         run;

x2=&amp;lt;.0001
&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281094#M56932</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-29T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pvalue6.4 to character conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281108#M56938</link>
      <description>&lt;P&gt;First try to Drop this symbol (&amp;lt;), then try to show this value 0.000001 in format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Later you change to character variable as a Normal process. (using put).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pvalue6-4-to-character-conversion/m-p/281108#M56938</guid>
      <dc:creator>Riteshdell</dc:creator>
      <dc:date>2016-06-29T13:52:12Z</dc:date>
    </item>
  </channel>
</rss>

