<?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: Data appears as Char rather than numeriv in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472129#M120998</link>
    <description>&lt;P&gt;See the approach outlined here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/date-manupulation/m-p/383548" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/date-manupulation/m-p/383548&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a variant on the same question where you need to convert a character to a date format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't get it working, post your code and we're happy to help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40563"&gt;@desireatem&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I do not understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1573 data firstobs;&lt;BR /&gt;1574 set firstobs;&lt;BR /&gt;1575 BP_Time=input(BP_Rd_Time, ANYDTDTEw.);&lt;BR /&gt; ----------&lt;BR /&gt; 48&lt;BR /&gt;ERROR 48-59: The informat ANYDTDTEW was not found or could not be loaded.&lt;/P&gt;
&lt;P&gt;1576 run;&lt;/P&gt;
&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;BR /&gt; (Line):(Column).&lt;BR /&gt; 1575:9 1575:15&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.FIRSTOBS may be incomplete. When this step was stopped there were&lt;BR /&gt; 0 observations and 64 variables.&lt;BR /&gt;WARNING: Data set WORK.FIRSTOBS was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 14:55:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-21T14:55:44Z</dc:date>
    <item>
      <title>Data appears as Char rather than num</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472111#M120992</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello, I have the date below coming up as "char" , 15, $15, $15 but I want it to be "num", 8, Datetime , anydtdtm40.&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.FIRSTOBS2" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r header" scope="col"&gt;Obs&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;BP_Rd_Time&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="l data"&gt;2/9/2017 13:44&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;4&lt;/TH&gt;
&lt;TD class="l data"&gt;2/8/2017 13:20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;5&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;6&lt;/TH&gt;
&lt;TD class="l data"&gt;2/8/2017 14:45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;7&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;8&lt;/TH&gt;
&lt;TD class="l data"&gt;2/8/2017 8:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;9&lt;/TH&gt;
&lt;TD class="l data"&gt;2/16/2017 19:31&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;10&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;11&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;12&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;13&lt;/TH&gt;
&lt;TD class="l data"&gt;2/21/2017 2:45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;14&lt;/TH&gt;
&lt;TD class="l data"&gt;2/6/2017 22:15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;15&lt;/TH&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472111#M120992</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2018-06-21T14:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472114#M120994</link>
      <description>&lt;P&gt;If these are truly character and not numeric, you can turn them into numerics via the INPUT function, using one of these informats:&amp;nbsp;ANYDTDTEw.&amp;nbsp;ANYDTDTMw.&amp;nbsp;ANYDTTMEw.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472114#M120994</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-21T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472120#M120996</link>
      <description>&lt;P&gt;I do not understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1573 data firstobs;&lt;BR /&gt;1574 set firstobs;&lt;BR /&gt;1575 BP_Time=input(BP_Rd_Time, ANYDTDTEw.);&lt;BR /&gt; ----------&lt;BR /&gt; 48&lt;BR /&gt;ERROR 48-59: The informat ANYDTDTEW was not found or could not be loaded.&lt;/P&gt;
&lt;P&gt;1576 run;&lt;/P&gt;
&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;BR /&gt; (Line):(Column).&lt;BR /&gt; 1575:9 1575:15&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.FIRSTOBS may be incomplete. When this step was stopped there were&lt;BR /&gt; 0 observations and 64 variables.&lt;BR /&gt;WARNING: Data set WORK.FIRSTOBS was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472120#M120996</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2018-06-21T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472129#M120998</link>
      <description>&lt;P&gt;See the approach outlined here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/date-manupulation/m-p/383548" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/date-manupulation/m-p/383548&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a variant on the same question where you need to convert a character to a date format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't get it working, post your code and we're happy to help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40563"&gt;@desireatem&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I do not understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1573 data firstobs;&lt;BR /&gt;1574 set firstobs;&lt;BR /&gt;1575 BP_Time=input(BP_Rd_Time, ANYDTDTEw.);&lt;BR /&gt; ----------&lt;BR /&gt; 48&lt;BR /&gt;ERROR 48-59: The informat ANYDTDTEW was not found or could not be loaded.&lt;/P&gt;
&lt;P&gt;1576 run;&lt;/P&gt;
&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;BR /&gt; (Line):(Column).&lt;BR /&gt; 1575:9 1575:15&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.FIRSTOBS may be incomplete. When this step was stopped there were&lt;BR /&gt; 0 observations and 64 variables.&lt;BR /&gt;WARNING: Data set WORK.FIRSTOBS was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472129#M120998</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-21T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472131#M121000</link>
      <description>&lt;P&gt;&amp;nbsp;Don't code like this, having the same name in your DATA and SET statement. Look slightly further down and notice the warning. You've now destroyed your input data set and now need to recreate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1573 data &lt;FONT size="4" color="#FF0000"&gt;firstobs;&lt;/FONT&gt;&lt;BR /&gt;1574 set &lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;firstobs;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WARNING: The data set WORK.FIRSTOBS may be incomplete. When this step was stopped there were&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0 observations and 64 variables.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT: w in the informat is for the width, the docs show it as a number. Either remove it or add a number in its place to indicate the width of the informat.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472131#M121000</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-21T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472136#M121002</link>
      <description>&lt;P&gt;Same error message;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1581 data firstobs10;&lt;BR /&gt;1582 set firstobs;&lt;BR /&gt;1583 BP_Time=input(BP_Rd_Time, ANYDTDTEw.);&lt;BR /&gt; ----------&lt;BR /&gt; 48&lt;BR /&gt;ERROR 48-59: The informat ANYDTDTEW was not found or could not be loaded.&lt;/P&gt;
&lt;P&gt;1584 run;&lt;/P&gt;
&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;BR /&gt; (Line):(Column).&lt;BR /&gt; 1583:9 1583:15&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.FIRSTOBS10 may be incomplete. When this step was stopped there&lt;BR /&gt; were 0 observations and 64 variables.&lt;BR /&gt;WARNING: Data set WORK.FIRSTOBS10 was not replaced because this step was stopped.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472136#M121002</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2018-06-21T15:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472141#M121004</link>
      <description>&lt;P&gt;The lowercase w is just used as a placeholder for the length of the informat.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472141#M121004</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-21T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data appears as Char rather than numeriv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472147#M121008</link>
      <description>&lt;P&gt;Thanks, this is correct:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data firstobs10;&lt;BR /&gt;set firstobs2;&lt;BR /&gt;BP_Time=input(BP_Rd_Time, ANYDTDTM40.);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-appears-as-Char-rather-than-num/m-p/472147#M121008</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2018-06-21T15:19:53Z</dc:date>
    </item>
  </channel>
</rss>

