<?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: reading time varialble error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626701#M184874</link>
    <description>&lt;P&gt;Once again, Maxim 1: Read the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p00pfj736exaw4n198x72n73emhm.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Documentation&lt;/A&gt;!!&lt;/P&gt;
&lt;P&gt;hh:mm:ss is not a valid informat, in fact it is not even a valid SAS name.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Feb 2020 08:29:32 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-02-23T08:29:32Z</dc:date>
    <item>
      <title>reading time varialble error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626700#M184873</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data retail;
input id date date9. time hh:mm:ss;
format date date9. time hh:mm:ss ;
datalines;
1 18Jun2018 13:25:21
2 28Jun2018 11:33:21
3 29Jun2018 11:24:21
4 29Jun2018 13:25:45
6 21Jun2018 9:59:05
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Time reading variable error&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 08:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626700#M184873</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-02-23T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: reading time varialble error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626701#M184874</link>
      <description>&lt;P&gt;Once again, Maxim 1: Read the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p00pfj736exaw4n198x72n73emhm.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Documentation&lt;/A&gt;!!&lt;/P&gt;
&lt;P&gt;hh:mm:ss is not a valid informat, in fact it is not even a valid SAS name.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 08:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626701#M184874</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-23T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: reading time varialble error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626702#M184875</link>
      <description>&lt;P&gt;And also read up the documentation for the input statement, list input; and how to use formats in list input.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 08:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626702#M184875</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-23T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: reading time varialble error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626706#M184876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, this is not a valide format.&lt;/P&gt;
&lt;P&gt;You can use ":&lt;EM&gt;informat&lt;/EM&gt;." in the input statement to specify how to interpret input values, and then specify the format for display :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data retail;
input id date:date9. time:time8.;
format date date9. time time8. ;
datalines;
1 18Jun2018 13:25:21
2 28Jun2018 11:33:21
3 29Jun2018 11:24:21
4 29Jun2018 13:25:45
6 21Jun2018 9:59:05
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-02-23 à 10.32.33.png" style="width: 136px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36329iF99D9D3DDC6CA19F/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture d’écran 2020-02-23 à 10.32.33.png" alt="Capture d’écran 2020-02-23 à 10.32.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;-&amp;gt; You can see that SAS reads correctly the date and the time variables.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 09:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-time-varialble-error/m-p/626706#M184876</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-23T09:33:29Z</dc:date>
    </item>
  </channel>
</rss>

