<?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: convert the char into date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361390#M85214</link>
    <description>&lt;P&gt;The ?? in the input statement will result in a missing value (with no note in the log) when the variable can't be input using the specified informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 20:38:06 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-05-24T20:38:06Z</dc:date>
    <item>
      <title>convert the char into date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361387#M85211</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am reading other people's code but did not understand "??" in the following code for char into num conversion.&lt;STRONG&gt;&amp;nbsp;input(strip(AESTDTC),?? yymmdd10.)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help me out on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 20:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361387#M85211</guid>
      <dc:creator>SAS_John</dc:creator>
      <dc:date>2017-05-24T20:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: convert the char into date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361390#M85214</link>
      <description>&lt;P&gt;The ?? in the input statement will result in a missing value (with no note in the log) when the variable can't be input using the specified informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 20:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361390#M85214</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-24T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert the char into date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361392#M85215</link>
      <description>&lt;P&gt;Please the log when you run this example code:&lt;/P&gt;
&lt;PRE&gt;data example;
   mydate = input('9999/99/99', yymmdd10.)    ;
   odate  = input('9999/99/99',?? yymmdd10.)    ;
   realdt = input('2017/10/05', yymmdd10.)    ;
   format mydate odate realdt date9.;
run;&lt;/PRE&gt;
&lt;P&gt;You will get an error message from the first line. The example "dates" of 9999/99/99 are one example of some coding for "missing" in some data systems that must have a value but for some reason do not have the actual value available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 20:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361392#M85215</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-24T20:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: convert the char into date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361406#M85223</link>
      <description>&lt;P&gt;Thank you both!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the result, the day missing values are the first day of the month. Is anyway to define the missing values of both day and month similarly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 21:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361406#M85223</guid>
      <dc:creator>SAS_John</dc:creator>
      <dc:date>2017-05-24T21:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: convert the char into date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361622#M85322</link>
      <description>&lt;P&gt;It will help to show us what the values with missing days look like. If your dates actually have delimiter&amp;nbsp; such as / then the ANYDTDTE informat should work to imply the day of the month when missing is 01.&lt;/P&gt;
&lt;PRE&gt;data example;
   informat datestr $10.;
   input datestr ;
   mydate = input(datestr,anydtdte.);
   format mydate date9.;
datalines ;
2017/01/15
2017/01   
;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 14:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-char-into-date/m-p/361622#M85322</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-25T14:27:21Z</dc:date>
    </item>
  </channel>
</rss>

