<?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 convert the Character dechow to convert the Character decimal value to numeric decimal va in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701646#M214878</link>
    <description>Depends, what does it look like?&lt;BR /&gt;&lt;BR /&gt;NewVariable = input(characterVariable, Best32.);</description>
    <pubDate>Wed, 25 Nov 2020 18:37:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-11-25T18:37:51Z</dc:date>
    <item>
      <title>how to convert the Character dechow to convert the Character decimal value to numeric decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701645#M214877</link>
      <description>&lt;P&gt;how to convert the Character decimal value to numeric decimal values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 18:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701645#M214877</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-25T18:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character dechow to convert the Character decimal value to numeric decimal va</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701646#M214878</link>
      <description>Depends, what does it look like?&lt;BR /&gt;&lt;BR /&gt;NewVariable = input(characterVariable, Best32.);</description>
      <pubDate>Wed, 25 Nov 2020 18:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701646#M214878</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-25T18:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character dechow to convert the Character decimal value to numeric decimal va</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701651#M214879</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;
&lt;P&gt;x=320.912 ( character value)&lt;/P&gt;
&lt;P&gt;Tried this code did not working&lt;/P&gt;
&lt;P&gt;Y=input(x, best32);&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 18:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701651#M214879</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-25T18:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character dechow to convert the Character decimal value to numeric decimal va</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701657#M214880</link>
      <description>You forgot the period after the format name, if you post the errors you get it's a lot more helpful and faster to debug. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; 68         &lt;BR /&gt; 69         data demo;&lt;BR /&gt; 70         x="320.912";&lt;BR /&gt; 71         Y=input(x, best32.);&lt;BR /&gt; 72         run;&lt;BR /&gt; &lt;BR /&gt; NOTE: The data set WORK.DEMO has 1 observations and 2 variables.&lt;BR /&gt; NOTE: DATA statement used (Total process time):&lt;BR /&gt;       real time           0.00 seconds&lt;BR /&gt;       user cpu time       0.01 seconds&lt;BR /&gt;       system cpu time     0.00 seconds&lt;BR /&gt;       memory              663.40k&lt;BR /&gt;       OS Memory           23972.00k&lt;BR /&gt;       Timestamp           11/25/2020 06:57:15 PM&lt;BR /&gt;       Step Count                        31  Switch Count  2&lt;BR /&gt;       Page Faults                       0&lt;BR /&gt;       Page Reclaims                     175&lt;BR /&gt;       Page Swaps                        0&lt;BR /&gt;       Voluntary Context Switches        10&lt;BR /&gt;       Involuntary Context Switches      0&lt;BR /&gt;       Block Input Operations            0&lt;BR /&gt;       Block Output Operations           272&lt;BR /&gt;       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Obs	x	Y&lt;BR /&gt;1	320.912	320.912</description>
      <pubDate>Wed, 25 Nov 2020 18:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/701657#M214880</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-25T18:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character dechow to convert the Character decimal value to numeric decimal va</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/772198#M245169</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert&amp;nbsp; text field (Type Text, informat $8.) into a decimal field so I use the format best32.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;DATA anc;&lt;BR /&gt;set lab_hem_s;&lt;BR /&gt;where LBTEST = 'Absolute neutrophil count (ANC)';&lt;BR /&gt;ANC = input (LBTEST, best32.);&lt;BR /&gt;/* informat ANC best.;*/&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The run generates error and I get missing values as shown below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Invalid argument to function INPUT at line 362 column 11.&lt;BR /&gt;SUBJID=BLR-001-001 VISITT=Cycle 11 VISITD=11 LBTYPE=Haematology LBPRES=1 LBPREST=Yes LBREAS= DLBD=7 DLBM=9&lt;BR /&gt;DLBY=2020 LBTEST=Absolute neutrophil count (ANC) LBTESTND=. LBVAL=2.86 LBUNIT=10^9/L LBLLN=2.04 LBULN=5.8&lt;BR /&gt;LBRANGE=1 LBRANGET=Yes LBCS=. LBCST= LBCOM= HEMPART=Part 2 LBDAT=07SEP2020 ANC=. _ERROR_=1 _N_=19&lt;BR /&gt;NOTE: Invalid argument to function INPUT at line 362 column 11.&lt;BR /&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;BR /&gt;SUBJID=BLR-001-001 VISITT=End of treatment VISITD=20 LBTYPE=Haematology LBPRES=1 LBPREST=Yes LBREAS= DLBD=28&lt;BR /&gt;DLBM=9 DLBY=2020 LBTEST=Absolute neutrophil count (ANC) LBTESTND=. LBVAL=5.50 LBUNIT=10^9/L LBLLN=2.04&lt;BR /&gt;LBULN=5.8 LBRANGE=1 LBRANGET=Yes LBCS=. LBCST= LBCOM= HEMPART=Part 2 LBDAT=28SEP2020 ANC=. _ERROR_=1 _N_=20&lt;BR /&gt;NOTE: Mathematical operations could not be performed at the following places. The results of the operations&lt;BR /&gt;have been set to missing values.&lt;BR /&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;3061 at 362:11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/772198#M245169</guid>
      <dc:creator>juju_p</dc:creator>
      <dc:date>2021-10-05T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character dechow to convert the Character decimal value to numeric decimal va</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/772204#M245170</link>
      <description>According to the log, LBTEST=Absolute neutrophil count (ANC). &lt;BR /&gt;&lt;BR /&gt;How do you convert that to a number?&lt;BR /&gt;&lt;BR /&gt;Also, please post your question as  new question in the future. Solved questions don't get much views, especially ones that are almost a year old.</description>
      <pubDate>Tue, 05 Oct 2021 15:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/772204#M245170</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-05T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert the Character dechow to convert the Character decimal value to numeric decimal va</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/772210#M245176</link>
      <description>&lt;P&gt;Thanks a lot for your quick response! Indeed it was not the right variable to convert!&lt;/P&gt;&lt;P&gt;And I keep note to create a new post in the future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KRs&lt;/P&gt;&lt;P&gt;Justine&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-the-Character-dechow-to-convert-the-Character/m-p/772210#M245176</guid>
      <dc:creator>juju_p</dc:creator>
      <dc:date>2021-10-05T15:40:18Z</dc:date>
    </item>
  </channel>
</rss>

